From 270082a51cc674320d3374c75f5517b0a5c2467f Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 6 Sep 2018 08:59:53 +0530 Subject: [PATCH] VMware: Handle systemError in host_config_manager (#45263) Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/cloud/vmware/vmware_host_config_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/vmware/vmware_host_config_manager.py b/lib/ansible/modules/cloud/vmware/vmware_host_config_manager.py index bde525995a..c1253c035f 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_host_config_manager.py +++ b/lib/ansible/modules/cloud/vmware/vmware_host_config_manager.py @@ -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: