From bc84f69ae059f76366f6bfa382f28d3a90c3f955 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 9 Aug 2018 15:44:50 +0530 Subject: [PATCH] Fix unreferenced msg from vmware_host (#43872) Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/cloud/vmware/vmware_host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/vmware/vmware_host.py b/lib/ansible/modules/cloud/vmware/vmware_host.py index 7d1bf48eb6..4dd7e29cf5 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_host.py +++ b/lib/ansible/modules/cloud/vmware/vmware_host.py @@ -265,7 +265,7 @@ class VMwareHost(PyVmomi): host_connect_spec.sslThumbprint = task_error.thumbprint else: self.module.fail_json(msg="Failed to add host %s to vCenter: %s" % (self.esxi_hostname, - to_native(task_error.msg))) + to_native(task_error))) except vmodl.fault.NotSupported: self.module.fail_json(msg="Failed to add host %s to vCenter as host is" " being added to a folder %s whose childType"