Fix crash if you have a { in your user name

Fix #414
This commit is contained in:
Julien Duponchelle 2016-02-02 10:05:08 +01:00
parent 53d60bc71a
commit 71c3bda0a5
No known key found for this signature in database
GPG Key ID: F1E2485547D4595D

View File

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