fb-vmware 1.8.1__py3-none-any.whl → 1.8.3__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.
- fb_vmware/__init__.py +1 -1
- fb_vmware/cluster.py +3 -3
- fb_vmware/connect.py +5 -1
- fb_vmware/datastore.py +5 -4
- fb_vmware/dc.py +2 -2
- fb_vmware/ds_cluster.py +5 -4
- fb_vmware/dvs.py +3 -3
- fb_vmware/host.py +2 -2
- fb_vmware/network.py +4 -2
- fb_vmware/vm.py +2 -2
- fb_vmware-1.8.3.data/data/share/locale/de/LC_MESSAGES/fb_vmware.mo +0 -0
- fb_vmware-1.8.3.data/data/share/locale/en/LC_MESSAGES/fb_vmware.mo +0 -0
- {fb_vmware-1.8.1.dist-info → fb_vmware-1.8.3.dist-info}/METADATA +1 -1
- {fb_vmware-1.8.1.dist-info → fb_vmware-1.8.3.dist-info}/RECORD +17 -17
- fb_vmware-1.8.1.data/data/share/locale/de/LC_MESSAGES/fb_vmware.mo +0 -0
- fb_vmware-1.8.1.data/data/share/locale/en/LC_MESSAGES/fb_vmware.mo +0 -0
- {fb_vmware-1.8.1.dist-info → fb_vmware-1.8.3.dist-info}/WHEEL +0 -0
- {fb_vmware-1.8.1.dist-info → fb_vmware-1.8.3.dist-info}/entry_points.txt +0 -0
- {fb_vmware-1.8.1.dist-info → fb_vmware-1.8.3.dist-info}/licenses/LICENSE +0 -0
fb_vmware/__init__.py
CHANGED
fb_vmware/cluster.py
CHANGED
|
@@ -25,7 +25,7 @@ from .obj import DEFAULT_OBJ_STATUS
|
|
|
25
25
|
from .obj import VsphereObject
|
|
26
26
|
from .xlate import XLATOR
|
|
27
27
|
|
|
28
|
-
__version__ = "1.9.
|
|
28
|
+
__version__ = "1.9.3"
|
|
29
29
|
LOG = logging.getLogger(__name__)
|
|
30
30
|
|
|
31
31
|
|
|
@@ -310,7 +310,7 @@ class VsphereCluster(VsphereObject):
|
|
|
310
310
|
|
|
311
311
|
content = service_instance.RetrieveContent()
|
|
312
312
|
container = content.viewManager.CreateContainerView(
|
|
313
|
-
content.rootFolder, vim.ClusterComputeResource, True
|
|
313
|
+
content.rootFolder, [vim.ClusterComputeResource], True
|
|
314
314
|
)
|
|
315
315
|
for c in container.view:
|
|
316
316
|
if c.name == self.name:
|
|
@@ -322,7 +322,7 @@ class VsphereCluster(VsphereObject):
|
|
|
322
322
|
|
|
323
323
|
content = service_instance.RetrieveContent()
|
|
324
324
|
container = content.viewManager.CreateContainerView(
|
|
325
|
-
content.rootFolder, vim.ComputeResource, True
|
|
325
|
+
content.rootFolder, [vim.ComputeResource], True
|
|
326
326
|
)
|
|
327
327
|
for c in container.view:
|
|
328
328
|
if c.name == self.name:
|
fb_vmware/connect.py
CHANGED
|
@@ -55,7 +55,7 @@ from .network import VsphereNetwork, VsphereNetworkDict
|
|
|
55
55
|
from .vm import VsphereVm, VsphereVmList
|
|
56
56
|
from .xlate import XLATOR
|
|
57
57
|
|
|
58
|
-
__version__ = "2.11.
|
|
58
|
+
__version__ = "2.11.4"
|
|
59
59
|
LOG = logging.getLogger(__name__)
|
|
60
60
|
|
|
61
61
|
DEFAULT_OS_VERSION = "rhel9_64Guest"
|
|
@@ -1013,6 +1013,7 @@ class VsphereConnection(BaseVsphereHandler):
|
|
|
1013
1013
|
no_error=False,
|
|
1014
1014
|
disconnect=False,
|
|
1015
1015
|
name_only=False,
|
|
1016
|
+
as_pyvmomi_obj=False,
|
|
1016
1017
|
):
|
|
1017
1018
|
"""Get a virtual machine from vSphere as VsphereVm object straight by its name."""
|
|
1018
1019
|
if vsphere_name is None:
|
|
@@ -1039,6 +1040,9 @@ class VsphereConnection(BaseVsphereHandler):
|
|
|
1039
1040
|
vm=self.colored(vm_name, "CYAN"), vs=self.colored(vsphere_name, "CYAN")
|
|
1040
1041
|
)
|
|
1041
1042
|
)
|
|
1043
|
+
if as_pyvmomi_obj:
|
|
1044
|
+
return vm_obj
|
|
1045
|
+
|
|
1042
1046
|
parents = self.get_parents(vm_obj)
|
|
1043
1047
|
if self.verbose > 3:
|
|
1044
1048
|
LOG.debug("Parents of VM {vm!r}:\n{p}".format(vm=vm_obj.name, p=pp(parents)))
|
fb_vmware/datastore.py
CHANGED
|
@@ -34,7 +34,7 @@ from .errors import VSphereNoDatastoreFoundError
|
|
|
34
34
|
from .obj import VsphereObject
|
|
35
35
|
from .xlate import XLATOR
|
|
36
36
|
|
|
37
|
-
__version__ = "1.8.
|
|
37
|
+
__version__ = "1.8.4"
|
|
38
38
|
LOG = logging.getLogger(__name__)
|
|
39
39
|
|
|
40
40
|
_ = XLATOR.gettext
|
|
@@ -496,7 +496,7 @@ class VsphereDatastore(VsphereObject):
|
|
|
496
496
|
|
|
497
497
|
content = service_instance.RetrieveContent()
|
|
498
498
|
container = content.viewManager.CreateContainerView(
|
|
499
|
-
content.rootFolder, vim.Datastore, True
|
|
499
|
+
content.rootFolder, [vim.Datastore], True
|
|
500
500
|
)
|
|
501
501
|
for c in container.view:
|
|
502
502
|
if c.name == self.name:
|
|
@@ -917,6 +917,7 @@ class VsphereDatastoreDict(MutableMapping, FbGenericBaseObject):
|
|
|
917
917
|
use_random_select=use_random_select,
|
|
918
918
|
)
|
|
919
919
|
if ds_name:
|
|
920
|
+
LOG.debug(_("Found usable datastore {!r}.").format(ds_name))
|
|
920
921
|
return ds_name
|
|
921
922
|
|
|
922
923
|
raise VSphereNoDatastoreFoundError(needed_gb)
|
|
@@ -932,7 +933,7 @@ class VsphereDatastoreDict(MutableMapping, FbGenericBaseObject):
|
|
|
932
933
|
):
|
|
933
934
|
|
|
934
935
|
LOG.debug(
|
|
935
|
-
_("Searching datastore for {c:
|
|
936
|
+
_("Searching datastore for {c:0.1f} GiB of type {t!r}.").format(
|
|
936
937
|
c=needed_gb, t=storage_type
|
|
937
938
|
)
|
|
938
939
|
)
|
|
@@ -952,7 +953,7 @@ class VsphereDatastoreDict(MutableMapping, FbGenericBaseObject):
|
|
|
952
953
|
if usable and compute_cluster:
|
|
953
954
|
if ds.compute_clusters is None:
|
|
954
955
|
msg = _(
|
|
955
|
-
"Cannot detect connection with compute cluster {
|
|
956
|
+
"Cannot detect connection with compute cluster {!r}, datastore "
|
|
956
957
|
"was not detailled discovered."
|
|
957
958
|
).format(ds_name)
|
|
958
959
|
raise FbVMWareRuntimeError(msg)
|
fb_vmware/dc.py
CHANGED
|
@@ -23,7 +23,7 @@ from .obj import DEFAULT_OBJ_STATUS
|
|
|
23
23
|
from .obj import VsphereObject
|
|
24
24
|
from .xlate import XLATOR
|
|
25
25
|
|
|
26
|
-
__version__ = "1.1.
|
|
26
|
+
__version__ = "1.1.2"
|
|
27
27
|
LOG = logging.getLogger(__name__)
|
|
28
28
|
|
|
29
29
|
DEFAULT_HOST_FOLDER = "host"
|
|
@@ -142,7 +142,7 @@ class VsphereDatacenter(VsphereObject):
|
|
|
142
142
|
|
|
143
143
|
content = service_instance.RetrieveContent()
|
|
144
144
|
container = content.viewManager.CreateContainerView(
|
|
145
|
-
content.rootFolder, vim.Datacenter, True
|
|
145
|
+
content.rootFolder, [vim.Datacenter], True
|
|
146
146
|
)
|
|
147
147
|
for c in container.view:
|
|
148
148
|
if c.name == self.name:
|
fb_vmware/ds_cluster.py
CHANGED
|
@@ -35,7 +35,7 @@ from .errors import VSphereNoDsClusterFoundError
|
|
|
35
35
|
from .obj import VsphereObject
|
|
36
36
|
from .xlate import XLATOR
|
|
37
37
|
|
|
38
|
-
__version__ = "1.8.
|
|
38
|
+
__version__ = "1.8.4"
|
|
39
39
|
LOG = logging.getLogger(__name__)
|
|
40
40
|
|
|
41
41
|
_ = XLATOR.gettext
|
|
@@ -340,7 +340,7 @@ class VsphereDsCluster(VsphereObject):
|
|
|
340
340
|
|
|
341
341
|
content = service_instance.RetrieveContent()
|
|
342
342
|
container = content.viewManager.CreateContainerView(
|
|
343
|
-
content.rootFolder, vim.StoragePod, True
|
|
343
|
+
content.rootFolder, [vim.StoragePod], True
|
|
344
344
|
)
|
|
345
345
|
for c in container.view:
|
|
346
346
|
if c.name == self.name:
|
|
@@ -688,6 +688,7 @@ class VsphereDsClusterDict(MutableMapping, FbGenericBaseObject):
|
|
|
688
688
|
use_random_select=use_random_select,
|
|
689
689
|
)
|
|
690
690
|
if ds_cluster_name:
|
|
691
|
+
LOG.debug(_("Found usable datastore cluster {!r}.").format(ds_cluster_name))
|
|
691
692
|
return ds_cluster_name
|
|
692
693
|
|
|
693
694
|
raise VSphereNoDsClusterFoundError(needed_gb)
|
|
@@ -703,7 +704,7 @@ class VsphereDsClusterDict(MutableMapping, FbGenericBaseObject):
|
|
|
703
704
|
):
|
|
704
705
|
|
|
705
706
|
LOG.debug(
|
|
706
|
-
_("Searching datastore cluster for {c:
|
|
707
|
+
_("Searching datastore cluster for {c:0.1f} GiB of type {t!r}.").format(
|
|
707
708
|
c=needed_gb, t=storage_type
|
|
708
709
|
)
|
|
709
710
|
)
|
|
@@ -723,7 +724,7 @@ class VsphereDsClusterDict(MutableMapping, FbGenericBaseObject):
|
|
|
723
724
|
if usable and compute_cluster:
|
|
724
725
|
if dsc.compute_clusters is None:
|
|
725
726
|
msg = _(
|
|
726
|
-
"Cannot detect connection with compute cluster {
|
|
727
|
+
"Cannot detect connection with compute cluster {!r}, datastore cluster "
|
|
727
728
|
"was not detailled discovered."
|
|
728
729
|
).format(dsc_name)
|
|
729
730
|
raise FbVMWareRuntimeError(msg)
|
fb_vmware/dvs.py
CHANGED
|
@@ -29,7 +29,7 @@ from .obj import DEFAULT_OBJ_STATUS
|
|
|
29
29
|
from .obj import VsphereObject
|
|
30
30
|
from .xlate import XLATOR
|
|
31
31
|
|
|
32
|
-
__version__ = "1.1.
|
|
32
|
+
__version__ = "1.1.1"
|
|
33
33
|
LOG = logging.getLogger(__name__)
|
|
34
34
|
|
|
35
35
|
_ = XLATOR.gettext
|
|
@@ -308,7 +308,7 @@ class VsphereDVS(VsphereObject):
|
|
|
308
308
|
|
|
309
309
|
content = service_instance.RetrieveContent()
|
|
310
310
|
container = content.viewManager.CreateContainerView(
|
|
311
|
-
content.rootFolder, vim.DistributedVirtualSwitch, True
|
|
311
|
+
content.rootFolder, [vim.DistributedVirtualSwitch], True
|
|
312
312
|
)
|
|
313
313
|
for c in container.view:
|
|
314
314
|
if c.name == self.name:
|
|
@@ -734,7 +734,7 @@ class VsphereDvPortGroup(VsphereNetwork):
|
|
|
734
734
|
|
|
735
735
|
content = service_instance.RetrieveContent()
|
|
736
736
|
container = content.viewManager.CreateContainerView(
|
|
737
|
-
content.rootFolder, vim.dvs.DistributedVirtualPortgroup, True
|
|
737
|
+
content.rootFolder, [vim.dvs.DistributedVirtualPortgroup], True
|
|
738
738
|
)
|
|
739
739
|
for c in container.view:
|
|
740
740
|
if c.name == self.name:
|
fb_vmware/host.py
CHANGED
|
@@ -37,7 +37,7 @@ from .obj import DEFAULT_OBJ_STATUS, OBJ_STATUS_GREEN
|
|
|
37
37
|
from .obj import VsphereObject
|
|
38
38
|
from .xlate import XLATOR
|
|
39
39
|
|
|
40
|
-
__version__ = "1.3.
|
|
40
|
+
__version__ = "1.3.1"
|
|
41
41
|
LOG = logging.getLogger(__name__)
|
|
42
42
|
|
|
43
43
|
_ = XLATOR.gettext
|
|
@@ -552,7 +552,7 @@ class VsphereHost(VsphereObject):
|
|
|
552
552
|
|
|
553
553
|
content = service_instance.RetrieveContent()
|
|
554
554
|
container = content.viewManager.CreateContainerView(
|
|
555
|
-
content.rootFolder, vim.HostSystem, True
|
|
555
|
+
content.rootFolder, [vim.HostSystem], True
|
|
556
556
|
)
|
|
557
557
|
for c in container.view:
|
|
558
558
|
if c.name == self.name:
|
fb_vmware/network.py
CHANGED
|
@@ -31,7 +31,7 @@ from .obj import VsphereObject
|
|
|
31
31
|
from .typed_dict import TypedDict
|
|
32
32
|
from .xlate import XLATOR
|
|
33
33
|
|
|
34
|
-
__version__ = "1.10.
|
|
34
|
+
__version__ = "1.10.3"
|
|
35
35
|
LOG = logging.getLogger(__name__)
|
|
36
36
|
|
|
37
37
|
_ = XLATOR.gettext
|
|
@@ -246,7 +246,9 @@ class VsphereNetwork(VsphereObject):
|
|
|
246
246
|
return None
|
|
247
247
|
|
|
248
248
|
content = service_instance.RetrieveContent()
|
|
249
|
-
container = content.viewManager.CreateContainerView(
|
|
249
|
+
container = content.viewManager.CreateContainerView(
|
|
250
|
+
content.rootFolder, [vim.Network], True
|
|
251
|
+
)
|
|
250
252
|
for c in container.view:
|
|
251
253
|
if c.name == self.name:
|
|
252
254
|
obj = c
|
fb_vmware/vm.py
CHANGED
|
@@ -38,7 +38,7 @@ from .obj import OBJ_STATUS_GREEN
|
|
|
38
38
|
from .obj import VsphereObject
|
|
39
39
|
from .xlate import XLATOR
|
|
40
40
|
|
|
41
|
-
__version__ = "1.3.
|
|
41
|
+
__version__ = "1.3.2"
|
|
42
42
|
LOG = logging.getLogger(__name__)
|
|
43
43
|
|
|
44
44
|
_ = XLATOR.gettext
|
|
@@ -422,7 +422,7 @@ class VsphereVm(VsphereObject):
|
|
|
422
422
|
|
|
423
423
|
content = service_instance.RetrieveContent()
|
|
424
424
|
container = content.viewManager.CreateContainerView(
|
|
425
|
-
content.rootFolder, vim.VirtualMachine, True
|
|
425
|
+
content.rootFolder, [vim.VirtualMachine], True
|
|
426
426
|
)
|
|
427
427
|
for c in container.view:
|
|
428
428
|
if c.name == self.name:
|
|
Binary file
|
|
Binary file
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
fb_vmware/__init__.py,sha256
|
|
1
|
+
fb_vmware/__init__.py,sha256=hzr4325CZTQrE_2EixvpdnxBFYFB1p-XGSGnpgjYCB4,2285
|
|
2
2
|
fb_vmware/about.py,sha256=nJ4_PsCNiwGUcd8E7JYhsFMDgkS8-P9hDaYZKWJhyCs,11602
|
|
3
3
|
fb_vmware/argparse_actions.py,sha256=3NZxQyFIUFe7uKTFa0V52Ab4hcgp4aVJL2rsMpgt4zU,2335
|
|
4
4
|
fb_vmware/base.py,sha256=dqMVEZUgVddiA3VxVhBBbCUd3aRT94vt_8gUWI4F7Vo,11692
|
|
5
|
-
fb_vmware/cluster.py,sha256=
|
|
6
|
-
fb_vmware/connect.py,sha256=
|
|
5
|
+
fb_vmware/cluster.py,sha256=8TvPdxRRDnsdMbBkRmic0qVGbB5kE8q_qCD1mAjZ-Ow,18195
|
|
6
|
+
fb_vmware/connect.py,sha256=MsohLvLtJaYNeCgRpY5F9HousC4-Q-zBqsc6BrIi8dE,85530
|
|
7
7
|
fb_vmware/controller.py,sha256=UBlCmzhUDiy7QkzfoyeQEDfFW13pj3oTCHtL3xyVf1k,20130
|
|
8
|
-
fb_vmware/datastore.py,sha256=
|
|
9
|
-
fb_vmware/dc.py,sha256=
|
|
8
|
+
fb_vmware/datastore.py,sha256=LrZduujLz5JhwYJG13lfRylZSabXAKUl4Z0FTvuzttI,33435
|
|
9
|
+
fb_vmware/dc.py,sha256=1j3FO9Nd_edb6wNZmmGEgudC855fVBc5PFBXjYJAvQ4,9631
|
|
10
10
|
fb_vmware/disk.py,sha256=gOSEaZoU4Aiksio3W-FGCClfF9kGi2P7O0ucCYdYH6c,21631
|
|
11
|
-
fb_vmware/ds_cluster.py,sha256=
|
|
12
|
-
fb_vmware/dvs.py,sha256=
|
|
11
|
+
fb_vmware/ds_cluster.py,sha256=EVNzvVbT5J0M9vyFYISdvU7L4zxYIjjDXaQa-TJC6XA,26297
|
|
12
|
+
fb_vmware/dvs.py,sha256=Eo9sGfbl_7eyQ-c77fKilP09RtlCSd6zLhtA1OEVVg0,25822
|
|
13
13
|
fb_vmware/errors.py,sha256=7_Fc4_HzQksCrIGuwQQQ4c8n6itl7hx1_L6wSfIzn3k,12760
|
|
14
14
|
fb_vmware/ether.py,sha256=YLU1C-5vMKKLLsTDmbyx5P-h-FHq-NkRku_Ztkok2ZU,27513
|
|
15
|
-
fb_vmware/host.py,sha256=
|
|
15
|
+
fb_vmware/host.py,sha256=EJ3lLtUmrF95UC3VzezhOJmBRim_0ilnGa9V4ELHv8U,35402
|
|
16
16
|
fb_vmware/host_port_group.py,sha256=qpQRlc0TgeUMRMy2KKaInkgY__MVe_vVbven_2rxMZM,16516
|
|
17
17
|
fb_vmware/iface.py,sha256=2rI2rhOX6Ro1IV-AvOzWK6eWDhrDVRsTMi9BLCFvF0g,5543
|
|
18
|
-
fb_vmware/network.py,sha256=
|
|
18
|
+
fb_vmware/network.py,sha256=WHmLp5vJXmf1JGjjyP_J5DfONmmbuqNT5-JQcTE1EQI,17849
|
|
19
19
|
fb_vmware/obj.py,sha256=_ehe76NlrTvAy9tMfEojiDP-IT01XqaWUVVbyIrUe-k,11228
|
|
20
20
|
fb_vmware/typed_dict.py,sha256=0_9qVGD5dHLBzyqeyPrdPfNxQgLpCfvDFmt69ZLnfLI,11445
|
|
21
|
-
fb_vmware/vm.py,sha256=
|
|
21
|
+
fb_vmware/vm.py,sha256=GC-V9eb5q2fYPwiXJJJmmkG7Vi5DBRVF4gXeFS6YAjc,32216
|
|
22
22
|
fb_vmware/xlate.py,sha256=EhfzUKCQgQjTbfYHusbtUX2_0NyZUHRDgbPBvPZFBkU,3704
|
|
23
23
|
fb_vmware/app/__init__.py,sha256=7ceb8kKYaGf8OCcM72qgASYhYT6rpi2gx-z2JXPMFGA,19779
|
|
24
24
|
fb_vmware/app/get_host_list.py,sha256=nmWVAa_RAVWWUh4R6ybSlZn1s59HmMKIAj0iuts3g70,15060
|
|
@@ -31,10 +31,10 @@ fb_vmware/app/get_vm_info.py,sha256=gqd2oBwFbVKddpMEjyS0ndnKXNaaDzfd9Erj98sewQI,
|
|
|
31
31
|
fb_vmware/app/get_vm_list.py,sha256=QkXpZst1JZHhWK8s_keHpjr0ii1X5BTlqBCPvooDqMk,22377
|
|
32
32
|
fb_vmware/app/search_storage.py,sha256=H4zwYtKgeNHKGfXgZwX9qUpSyPgwIHFOoozjpceQ5Yo,16464
|
|
33
33
|
fb_vmware/config/__init__.py,sha256=lSpr-yl4KiexCUhqBmDaleFeYnSEx3B1YosEb61ZLR4,18130
|
|
34
|
-
fb_vmware-1.8.
|
|
35
|
-
fb_vmware-1.8.
|
|
36
|
-
fb_vmware-1.8.
|
|
37
|
-
fb_vmware-1.8.
|
|
38
|
-
fb_vmware-1.8.
|
|
39
|
-
fb_vmware-1.8.
|
|
40
|
-
fb_vmware-1.8.
|
|
34
|
+
fb_vmware-1.8.3.data/data/share/locale/de/LC_MESSAGES/fb_vmware.mo,sha256=0rL1Iz6s0shC447GJX7Ga5ecuZG-bUo1RYKHsuGiMPM,48684
|
|
35
|
+
fb_vmware-1.8.3.data/data/share/locale/en/LC_MESSAGES/fb_vmware.mo,sha256=YRU-cOQIIeJEWbntT8bWsv_r9zZWcRwERxfwrwrBnTA,45817
|
|
36
|
+
fb_vmware-1.8.3.dist-info/entry_points.txt,sha256=wFLEbIRUx-xuzmVEA6f5AuNs0ePwiihiHvdXzhkv2FY,568
|
|
37
|
+
fb_vmware-1.8.3.dist-info/licenses/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
|
|
38
|
+
fb_vmware-1.8.3.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
39
|
+
fb_vmware-1.8.3.dist-info/METADATA,sha256=s2Z1l8AYqB9MeUV-iMZ6BK6DybUf4jDPP8nuwaSvPTo,2121
|
|
40
|
+
fb_vmware-1.8.3.dist-info/RECORD,,
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|