mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix issue when trying to rename a Dynamips node that is already powered on. Fixes #2824
This commit is contained in:
1 parent
63fb82a89d
commit
b0f74c2a5e
2 files changed
+4
-2
No files matched your search
@@ -388,7 +388,6 @@ class Node:
|
||||
|
||||
# When updating properties used only on controller we don't need to call the compute
|
||||
update_compute = False
|
||||
|
||||
old_json = self.__json__()
|
||||
|
||||
compute_properties = None
|
||||
@@ -402,6 +401,8 @@ class Node:
|
||||
if prop == "properties":
|
||||
compute_properties = kwargs[prop]
|
||||
else:
|
||||
if prop == "name" and self.node_type == "dynamips" and self.status == "started":
|
||||
raise aiohttp.web.HTTPConflict(text="Sorry, it is not possible rename of a Dynamips node that is already powered on")
|
||||
setattr(self, prop, kwargs[prop])
|
||||
|
||||
if compute_properties and "custom_adapters" in compute_properties:
|
||||
|
||||
Reference in new issue
Block a user