mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 15:33:49 +02:00
Fixes some inconsistencies when exporting configs.
This commit is contained in:
parent
f5cf7363da
commit
64f78bb847
@ -653,7 +653,7 @@ class VM(object):
|
|||||||
if private_config_base64:
|
if private_config_base64:
|
||||||
response["private_config_base64"] = private_config_base64
|
response["private_config_base64"] = private_config_base64
|
||||||
except DynamipsError:
|
except DynamipsError:
|
||||||
self.send_custom_error("unable to extract configs")
|
self.send_custom_error("unable to extract configs from the NVRAM")
|
||||||
return
|
return
|
||||||
|
|
||||||
if not response:
|
if not response:
|
||||||
|
@ -782,6 +782,10 @@ class IOU(IModule):
|
|||||||
if not iou_instance:
|
if not iou_instance:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not iou_instance.initial_config:
|
||||||
|
self.send_custom_error("unable to export the initial-config because it doesn't exist")
|
||||||
|
return
|
||||||
|
|
||||||
response = {}
|
response = {}
|
||||||
initial_config_path = os.path.join(iou_instance.working_dir, iou_instance.initial_config)
|
initial_config_path = os.path.join(iou_instance.working_dir, iou_instance.initial_config)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user