mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 09:26:03 +00:00
refactor(vrtManager): remove the wvmConnect.close() that did nothing
Its body was a pass: connections are kept by the connection manager, not closed per object. The calls to it, and the finally blocks and None guards that only called it, are removed.
This commit is contained in:
parent
4d37e65c03
commit
faa896ca54
11 changed files with 10 additions and 60 deletions
|
|
@ -1182,12 +1182,6 @@ class wvmConnect(object):
|
|||
for dev in self.wvm.listAllDevices(libvirt.VIR_CONNECT_LIST_NODE_DEVICES_CAP_NET)
|
||||
]
|
||||
|
||||
def close(self):
|
||||
"""Close connection"""
|
||||
# to-do: do not close connection ;)
|
||||
# self.wvm.close()
|
||||
pass
|
||||
|
||||
def get_firmwares(self, arch, machine):
|
||||
"""The firmware a new VM can have: BIOS on x86, UEFI without Secure Boot
|
||||
when libvirt picks the firmware itself, and on x86_64 UEFI Secure Boot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue