1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 01:16:10 +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:
catborise 2026-11-08 12:19:29 +03:00
parent 4d37e65c03
commit faa896ca54
11 changed files with 10 additions and 60 deletions

View file

@ -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