Merge pull request #158 from GNS3/keep_iou_config

Do not erase the IOU initial-config if there is one when creating the IOU VM.
This commit is contained in:
Jeremy Grossmann committed 2015-04-27 18:37:17 -06:00
commit 4f021054e0
3 files changed
+26 -2

No files matched your search

+1 -1
View File
@@ -973,7 +973,7 @@ class IOUVM(BaseVM):
if len(initial_config) == 0 and os.path.exists(initial_config_path):
return
with open(initial_config_path, "w+", encoding="utf-8") as f:
with open(initial_config_path, 'w+', encoding='utf-8') as f:
if len(initial_config) == 0:
f.write('')
else: