From 108a659ca45111f9c4481cbf8d464cfc659ac9c4 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 27 Jul 2017 11:59:20 +0200 Subject: [PATCH] Fix bug when exporting debug information with multiple remote servers Fix #1100 --- gns3server/handlers/api/controller/server_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/handlers/api/controller/server_handler.py b/gns3server/handlers/api/controller/server_handler.py index a0208a69..e9a798df 100644 --- a/gns3server/handlers/api/controller/server_handler.py +++ b/gns3server/handlers/api/controller/server_handler.py @@ -169,7 +169,7 @@ class ServerHandler: data = r.body.decode("utf-8") except Exception as 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(data)