mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
Fix passing tests
This commit is contained in:
1 parent
6aa2afcf54
commit
931018b877
4 files changed
+11
-7
No files matched your search
@@ -207,7 +207,8 @@ class IOUVM(BaseNode):
|
||||
"nvram": self._nvram,
|
||||
"l1_keepalives": self._l1_keepalives,
|
||||
"use_default_iou_values": self._use_default_iou_values,
|
||||
"command_line": self.command_line}
|
||||
"command_line": self.command_line,
|
||||
"application_id": self.application_id}
|
||||
|
||||
# return the relative path if the IOU image is in the images_path directory
|
||||
iou_vm_info["path"] = self.manager.get_relative_image_path(self.path)
|
||||
|
||||
@@ -66,7 +66,7 @@ class Node:
|
||||
self.name = name
|
||||
self._console = None
|
||||
self._console_type = None
|
||||
self._properties = {}
|
||||
self._properties = None
|
||||
self._command_line = None
|
||||
self._node_directory = None
|
||||
self._status = "stopped"
|
||||
@@ -88,6 +88,8 @@ class Node:
|
||||
# This properties will be recompute
|
||||
ignore_properties = ("width", "height")
|
||||
|
||||
self.properties = kwargs.pop('properties', {})
|
||||
|
||||
# Update node properties with additional elements
|
||||
for prop in kwargs:
|
||||
if prop not in ignore_properties:
|
||||
|
||||
@@ -354,6 +354,7 @@ class Project:
|
||||
return self._nodes[node_id]
|
||||
|
||||
if node_type == "iou" and 'application_id' not in kwargs.keys():
|
||||
|
||||
kwargs['application_id'] = get_next_application_id(self._nodes.values())
|
||||
|
||||
node = Node(self, compute, name, node_id=node_id, node_type=node_type, **kwargs)
|
||||
|
||||
Reference in new issue
Block a user