mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
VMware: Handle systemError in host_config_manager (#45263)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
9a6530be77
commit
270082a51c
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ class VmwareConfigManager(PyVmomi):
|
|||
if changed:
|
||||
try:
|
||||
option_manager.UpdateOptions(changedValue=change_option_list)
|
||||
except vmodl.fault.InvalidArgument as e:
|
||||
except (vmodl.fault.SystemError, vmodl.fault.InvalidArgument) as e:
|
||||
self.module.fail_json(msg="Failed to update option/s as one or more OptionValue "
|
||||
"contains an invalid value: %s" % to_native(e.msg))
|
||||
except vim.fault.InvalidName as e:
|
||||
|
|
Loading…
Reference in a new issue