提交 89e4d1f1 编写于 作者: N nicolargo

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

上级 411d22d0
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册