From 9b55a8623ccc3c9def6a74390ec0d20ba7411cbf Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 16 May 2014 11:38:48 -0600 Subject: [PATCH] Fixes #41. --- gns3server/modules/iou/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/iou/__init__.py b/gns3server/modules/iou/__init__.py index 8cf1036e..3d6da02c 100644 --- a/gns3server/modules/iou/__init__.py +++ b/gns3server/modules/iou/__init__.py @@ -435,7 +435,7 @@ class IOU(IModule): request["startup_config"] = os.path.basename(config_path) except OSError as e: raise IOUError("Could not save the configuration from {} to {}: {}".format(request["startup_config"], config_path, e)) - else: + elif not os.path.isfile(os.path.join(iou_instance.working_dir, request["startup_config"])): raise IOUError("Startup-config {} could not be found on this server".format(request["startup_config"])) except IOUError as e: self.send_custom_error(str(e))