summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2010-02-18 12:02:01 -0500
committerScott Moser <smoser@ubuntu.com>2010-02-18 12:02:01 -0500
commitb5455343e58de9b03cb23f32f88e91be4856f772 (patch)
tree27388d4a3c8c47a70b69b4adb5bffcb15f636a05
parentf0e16fe5d839818ec7e0fac8ba91d1e22777588c (diff)
downloadvyos-cloud-init-b5455343e58de9b03cb23f32f88e91be4856f772.tar.gz
vyos-cloud-init-b5455343e58de9b03cb23f32f88e91be4856f772.zip
fix 'time not defined' bug (LP: #523832)
LP: #523832
-rw-r--r--cloudinit/boto_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/boto_utils.py b/cloudinit/boto_utils.py
index 2f9de95f..34f10688 100644
--- a/cloudinit/boto_utils.py
+++ b/cloudinit/boto_utils.py
@@ -35,6 +35,7 @@
# affiliates.
import urllib2
import sys
+import time
def retry_url(url, retry_on_404=True):
for i in range(0, 10):
@@ -56,7 +57,7 @@ def retry_url(url, retry_on_404=True):
sys.stderr.write('Caught exception reading instance data')
time.sleep(2**i)
#boto.log.error('Unable to read instance data, giving up')
- sys.stderr.write('Caught exception reading instance data')
+ sys.stderr.write('Caught exception reading instance data, giving up')
return ''
def get_instance_metadata(version='latest'):