From 71c3bda0a5b3cd70684acb636208f4a79b55c4ff Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 2 Feb 2016 10:05:08 +0100 Subject: [PATCH] Fix crash if you have a { in your user name Fix #414 --- gns3server/modules/dynamips/nodes/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/dynamips/nodes/router.py b/gns3server/modules/dynamips/nodes/router.py index 9ebbbac8..2821169c 100644 --- a/gns3server/modules/dynamips/nodes/router.py +++ b/gns3server/modules/dynamips/nodes/router.py @@ -367,7 +367,7 @@ class Router(BaseVM): files += glob.glob(os.path.join(glob.escape(project_dir), "{}_i{}_flash[0-1]".format(self.platform, self.dynamips_id))) files += glob.glob(os.path.join(glob.escape(project_dir), "{}_i{}_rom".format(self.platform, self.dynamips_id))) files += glob.glob(os.path.join(glob.escape(project_dir), "{}_i{}_bootflash".format(self.platform, self.dynamips_id))) - files += glob.glob(os.path.join(glob.escape(project_dir), "{}_i{}_ssa").format(self.platform, self.dynamips_id)) + files += glob.glob(os.path.join(glob.escape(project_dir), "{}_i{}_ssa".format(self.platform, self.dynamips_id))) for file in files: try: log.debug("Deleting file {}".format(file))