better 'Caught exception reading instance data' error
This commit is contained in:
parent
450c4606a1
commit
a0ea62d8b4
@ -54,10 +54,10 @@ def retry_url(url, retry_on_404=True):
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
#boto.log.exception('Caught exception reading instance data')
|
#boto.log.exception('Caught exception reading instance data')
|
||||||
sys.stderr.write('Caught exception reading instance data')
|
sys.stderr.write('Caught exception reading instance data: %s\n' % url)
|
||||||
time.sleep(2**i)
|
time.sleep(2**i)
|
||||||
#boto.log.error('Unable to read instance data, giving up')
|
#boto.log.error('Unable to read instance data, giving up')
|
||||||
sys.stderr.write('Caught exception reading instance data, giving up')
|
sys.stderr.write('Caught exception reading instance data, giving up\n')
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
def get_instance_metadata(version='latest'):
|
def get_instance_metadata(version='latest'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user