mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +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
|
|
@ -126,7 +126,6 @@ def overview(request, compute_id):
|
|||
"libvirt_version": conn.get_lib_version(),
|
||||
"emulator": conn.get_emulator(arch), "guest_archs": conn.get_hypervisors_domain_types(),
|
||||
}
|
||||
conn.close()
|
||||
except libvirtError as error:
|
||||
context["read_error"] = str(error)
|
||||
context["given"] = shown_capacity(compute)
|
||||
|
|
@ -313,7 +312,6 @@ class ComputeManager:
|
|||
{"compute": self.compute.id, "idle": idle, "total": total, "time": taken}
|
||||
),
|
||||
}
|
||||
conn.close()
|
||||
except libvirtError:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue