mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
Fixes initial-configs that were not restored when opening a project containing IOU VMs.
This commit is contained in:
1 parent
e367f95f96
commit
aeab9780d8
2 files changed
+6
-10
No files matched your search
@@ -59,8 +59,6 @@ class IOUHandler:
|
||||
for name, value in request.json.items():
|
||||
if hasattr(vm, name) and getattr(vm, name) != value:
|
||||
setattr(vm, name, value)
|
||||
if "initial_config_content" in request.json:
|
||||
vm.initial_config = request.json.get("initial_config_content")
|
||||
response.set_status(201)
|
||||
response.json(vm)
|
||||
|
||||
@@ -108,8 +106,6 @@ class IOUHandler:
|
||||
for name, value in request.json.items():
|
||||
if hasattr(vm, name) and getattr(vm, name) != value:
|
||||
setattr(vm, name, value)
|
||||
if "initial_config_content" in request.json:
|
||||
vm.initial_config = request.json.get("initial_config_content")
|
||||
response.json(vm)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in new issue
Block a user