Fixes inconsistencies with startup and private config paths when renaming an IOS router.

This commit is contained in:
grossmj committed 2014-06-18 07:22:57 -06:00
1 parent 587ddf7646
commit 49506ada3f
4 files changed
+8 -14

No files matched your search

+1 -1
View File
@@ -373,7 +373,7 @@ class IOU(IModule):
if not iou_instance:
return
config_path = os.path.join(iou_instance.working_dir, "initial-config")
config_path = os.path.join(iou_instance.working_dir, "initial-config.cfg")
try:
if "initial_config_base64" in request:
# a new initial-config has been pushed
+2 -2
View File
@@ -208,9 +208,9 @@ class IOUDevice(object):
new_working_dir,
e))
if self._intial_config:
if self._initial_config:
# update the initial-config
config_path = os.path.join(self._working_dir, "initial-config")
config_path = os.path.join(self._working_dir, "initial-config.cfg")
if os.path.isfile(config_path):
try:
with open(config_path, "r+", errors="replace") as f: