Fix a rare race condition when exporting debug informations

Fix #880
pull/890/head
Julien Duponchelle 7 years ago
parent b9bd6aa501
commit d99ec92210
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -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")

Loading…
Cancel
Save