Fix a rare race condition when exporting debug informations

Fix #880
This commit is contained in:
Julien Duponchelle 2017-01-27 10:48:07 +01:00
parent b9bd6aa501
commit d99ec92210
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -150,7 +150,7 @@ class ServerHandler:
# If something is wrong we log the info to the log and we hope the log will be include correctly to the debug export
log.error("Could not copy VMware VMX file {}".format(e), exc_info=1)
for compute in Controller.instance().computes.values():
for compute in list(Controller.instance().computes.values()):
try:
r = yield from compute.get("/debug", raw=True)
data = r.body.decode("utf-8")