mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 00:08:11 +00:00
Fix bug when exporting debug information with multiple remote servers
Fix #1100
This commit is contained in:
parent
7683a79bb1
commit
108a659ca4
@ -169,7 +169,7 @@ class ServerHandler:
|
|||||||
data = r.body.decode("utf-8")
|
data = r.body.decode("utf-8")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
data = str(e)
|
data = str(e)
|
||||||
with open(os.path.join(debug_dir, "compute_{}.txt".format(compute.name)), "w+") as f:
|
with open(os.path.join(debug_dir, "compute_{}.txt".format(compute.id)), "w+") as f:
|
||||||
f.write("Compute ID: {}\n".format(compute.id))
|
f.write("Compute ID: {}\n".format(compute.id))
|
||||||
f.write(data)
|
f.write(data)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user