clonebox 1.1.17__py3-none-any.whl → 1.1.19__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- clonebox/backends/libvirt_backend.py +3 -1
- clonebox/cli.py +591 -544
- clonebox/cloner.py +498 -422
- clonebox/health/probes.py +14 -0
- clonebox/policies/__init__.py +13 -0
- clonebox/policies/engine.py +112 -0
- clonebox/policies/models.py +55 -0
- clonebox/policies/validators.py +26 -0
- clonebox/validator.py +228 -51
- {clonebox-1.1.17.dist-info → clonebox-1.1.19.dist-info}/METADATA +1 -1
- {clonebox-1.1.17.dist-info → clonebox-1.1.19.dist-info}/RECORD +15 -11
- {clonebox-1.1.17.dist-info → clonebox-1.1.19.dist-info}/WHEEL +0 -0
- {clonebox-1.1.17.dist-info → clonebox-1.1.19.dist-info}/entry_points.txt +0 -0
- {clonebox-1.1.17.dist-info → clonebox-1.1.19.dist-info}/licenses/LICENSE +0 -0
- {clonebox-1.1.17.dist-info → clonebox-1.1.19.dist-info}/top_level.txt +0 -0
|
@@ -50,8 +50,10 @@ class LibvirtBackend(HypervisorBackend):
|
|
|
50
50
|
self._conn = None
|
|
51
51
|
|
|
52
52
|
@property
|
|
53
|
-
def conn(self) -> libvirt.virConnect:
|
|
53
|
+
def conn(self) -> Optional["libvirt.virConnect"]:
|
|
54
54
|
"""Get active libvirt connection."""
|
|
55
|
+
if libvirt is None:
|
|
56
|
+
raise RuntimeError("libvirt is not available")
|
|
55
57
|
if self._conn is None:
|
|
56
58
|
self.connect()
|
|
57
59
|
return self._conn
|