1
0
鏡像自 https://github.com/GNS3/gns3-server synced 2025-07-04 05:42:38 +00:00

Merge pull request #1 from SpikefishSolutions/spikefishjohn-patch-1

qemu_vm.py Linked node test.
This commit is contained in:
John Fleming 2022-01-17 14:38:02 -05:00 提交者 GitHub
當前提交 7dcc80ff39
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23

查看文件

@ -258,7 +258,7 @@ class QemuVM(BaseNode):
if not self.linked_clone: if not self.linked_clone:
for node in self.manager.nodes: for node in self.manager.nodes:
if node != self and getattr(node, variable) == value: if node != self and getattr(node, variable) == value:
raise QemuError("Sorry a node without the linked base setting enabled can only be used once on your server. {} is already used by {}".format(value, node.name)) raise QemuError("Sorry a node without the linked base setting enabled can only be used once on your server. {} is already used by {} in project {}".format(value, node.name, node.project.name))
setattr(self, "_" + variable, value) setattr(self, "_" + variable, value)
log.info('QEMU VM "{name}" [{id}] has set the QEMU {variable} path to {disk_image}'.format(name=self._name, log.info('QEMU VM "{name}" [{id}] has set the QEMU {variable} path to {disk_image}'.format(name=self._name,
variable=variable, variable=variable,