Cloud plugin: Do not get all URL if first one failed

pull/1073/head
nicolargo 2017-03-05 16:02:35 +01:00
parent 411d22d047
commit 89e4d1f11f
1 changed files with 1 additions and 0 deletions

View File

@ -155,6 +155,7 @@ class ThreadAwsEc2Grabber(threading.Thread):
r = requests.get(r_url)
except Exception as e:
logger.debug('Can not connect to the AWS EC2 API {}'.format(r_url, e))
break
else:
if r.ok:
self._stats[k] = r.content