fb-vmware 1.8.1__tar.gz → 1.8.2__tar.gz

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.
Files changed (39) hide show
  1. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/PKG-INFO +1 -1
  2. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/__init__.py +1 -1
  3. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/cluster.py +3 -3
  4. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/connect.py +5 -1
  5. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/datastore.py +2 -2
  6. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/dc.py +2 -2
  7. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/ds_cluster.py +2 -2
  8. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/dvs.py +3 -3
  9. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/host.py +2 -2
  10. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/network.py +4 -2
  11. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/vm.py +2 -2
  12. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/LICENSE +0 -0
  13. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/README.md +0 -0
  14. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/data/share/locale/de/LC_MESSAGES/fb_vmware.mo +0 -0
  15. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/data/share/locale/en/LC_MESSAGES/fb_vmware.mo +0 -0
  16. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/pyproject.toml +0 -0
  17. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/about.py +0 -0
  18. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/app/__init__.py +0 -0
  19. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/app/get_host_list.py +0 -0
  20. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/app/get_network_list.py +0 -0
  21. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/app/get_rpool_list.py +0 -0
  22. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/app/get_storage_cluster_info.py +0 -0
  23. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/app/get_storage_cluster_list.py +0 -0
  24. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/app/get_storage_list.py +0 -0
  25. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/app/get_vm_info.py +0 -0
  26. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/app/get_vm_list.py +0 -0
  27. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/app/search_storage.py +0 -0
  28. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/argparse_actions.py +0 -0
  29. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/base.py +0 -0
  30. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/config/__init__.py +0 -0
  31. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/controller.py +0 -0
  32. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/disk.py +0 -0
  33. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/errors.py +0 -0
  34. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/ether.py +0 -0
  35. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/host_port_group.py +0 -0
  36. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/iface.py +0 -0
  37. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/obj.py +0 -0
  38. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/typed_dict.py +0 -0
  39. {fb_vmware-1.8.1 → fb_vmware-1.8.2}/src/fb_vmware/xlate.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fb_vmware
3
- Version: 1.8.1
3
+ Version: 1.8.2
4
4
  Summary: @summary: The module for a base vSphere handler object.
5
5
  Author-email: Frank Brehm <frank@brehm-online.com>
6
6
  Requires-Python: >=3.8
@@ -56,7 +56,7 @@ from .vm import VsphereVmList
56
56
  from .xlate import XLATOR
57
57
 
58
58
 
59
- __version__ = "1.8.1"
59
+ __version__ = "1.8.2"
60
60
 
61
61
  LOG = logging.getLogger(__name__)
62
62
 
@@ -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.2"
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:
@@ -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.3"
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)))
@@ -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.2"
37
+ __version__ = "1.8.3"
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:
@@ -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.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:
@@ -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.2"
38
+ __version__ = "1.8.3"
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:
@@ -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.0"
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:
@@ -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.0"
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:
@@ -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.1"
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(content.rootFolder, vim.Network, True)
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
@@ -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.1"
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:
File without changes
File without changes
File without changes