summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit')
-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)