mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-30 04:53:47 +02:00
parent
c99998d73c
commit
af942dc419
@ -79,8 +79,9 @@ class VirtualBoxHandler:
|
|||||||
yield from vm.set_ram(ram)
|
yield from vm.set_ram(ram)
|
||||||
|
|
||||||
for name, value in request.json.items():
|
for name, value in request.json.items():
|
||||||
if hasattr(vm, name) and getattr(vm, name) != value:
|
if name != "vm_id":
|
||||||
setattr(vm, name, value)
|
if hasattr(vm, name) and getattr(vm, name) != value:
|
||||||
|
setattr(vm, name, value)
|
||||||
|
|
||||||
response.set_status(201)
|
response.set_status(201)
|
||||||
response.json(vm)
|
response.json(vm)
|
||||||
|
Loading…
Reference in New Issue
Block a user