summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkeyz182 <keyz182@gmail.com>2011-05-28 01:36:29 +0100
committerkeyz182 <keyz182@gmail.com>2011-05-28 01:36:29 +0100
commit0497869b736cf06ec07f2c584a0bc3292781b44e (patch)
tree2a0285c380dbfcb5ff7354b2f1a5c6d4143a192e
parentf55bc489c4a177747948c32310869607507f4e1e (diff)
downloadvyos-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.py4
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)