mirror of https://github.com/nicolargo/glances
Cloud plugin: Do not get all URL if first one failed
parent
411d22d047
commit
89e4d1f11f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue