diff options
author | keyz182 <keyz182@gmail.com> | 2011-05-28 01:36:29 +0100 |
---|---|---|
committer | keyz182 <keyz182@gmail.com> | 2011-05-28 01:36:29 +0100 |
commit | 0497869b736cf06ec07f2c584a0bc3292781b44e (patch) | |
tree | 2a0285c380dbfcb5ff7354b2f1a5c6d4143a192e | |
parent | f55bc489c4a177747948c32310869607507f4e1e (diff) | |
download | vyos-cloud-init-0497869b736cf06ec07f2c584a0bc3292781b44e.tar.gz vyos-cloud-init-0497869b736cf06ec07f2c584a0bc3292781b44e.zip |
log.warn to log.warning
removed extra args from string format
-rw-r--r-- | cloudinit/DataSourceEc2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/DataSourceEc2.py b/cloudinit/DataSourceEc2.py index b1b02e8e..bb0b015a 100644 --- a/cloudinit/DataSourceEc2.py +++ b/cloudinit/DataSourceEc2.py @@ -117,7 +117,7 @@ class DataSourceEc2(DataSource.DataSource): addresslist = mcfg.get("metadata_url", addresslist) except Exception as e: util.logexc(log) - log.warn("Failed to get metadata URLs, using defaults") + log.warning("Failed to get metadata URLs, using defaults") starttime = time.time() @@ -134,7 +134,7 @@ class DataSourceEc2(DataSource.DataSource): for x in range(sleeps): - log.warning("[%02s/%s] Trying Metadata Services:" % (time.strftime("%H:%M:%S", time.gmtime()), x+1, sleeps)) + log.warning("[%02s/%s] Trying Metadata Services:" % (x+1, sleeps)) for address in addresslist: url="%s/%s/meta-data/instance-id" % (address, self.api_ver) |