File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
core/src/plugins/filed/python/vmware Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5252- stored: add new volume status 'Unlabeled' [ PR #2207 ]
5353- doc: add views & functions to developer catalog service chapter [ PR #2328 ]
5454- systemtests: add config-default test [ PR #2332 ]
55+ - VMware Plugin: Adapt to pyVmomi 9 [ PR #2341 ]
5556
5657### Documentation
5758- docs: fix grpc-fd plugin call [ PR #2068 ]
@@ -193,4 +194,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
193194[ PR #2321 ] : https://github.com/bareos/bareos/pull/2321
194195[ PR #2328 ] : https://github.com/bareos/bareos/pull/2328
195196[ PR #2332 ] : https://github.com/bareos/bareos/pull/2332
197+ [ PR #2341 ] : https://github.com/bareos/bareos/pull/2341
196198[ unreleased ] : https://github.com/bareos/bareos/tree/master
Original file line number Diff line number Diff line change 5151from pyVmomi import vim
5252from pyVmomi import vmodl
5353import pyVim .task
54- from pyVmomi .VmomiSupport import VmomiJSONEncoder
54+
55+ # Try import pyVmomi 9.x first and fallback to old method
56+ try :
57+ from pyVmomi .VmomiJSONEncoder import VmomiJSONEncoder
58+ except ImportError :
59+ from pyVmomi .VmomiSupport import VmomiJSONEncoder
5560
5661# if OrderedDict is not available from collection (eg. SLES11),
5762# the additional package python-ordereddict must be used
You can’t perform that action at this time.
0 commit comments