From 0b2558051c0a9489f283f740900c60f01518236a Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Mon, 9 Dec 2019 22:14:00 +0530 Subject: [PATCH] VMware: Minor fixes in vmware_httpapi modules (#65663) Signed-off-by: Abhijeet Kasurde --- changelogs/fragments/vmware_httpapi_fix.yml | 2 ++ lib/ansible/module_utils/vmware_httpapi/VmwareRestModule.py | 2 +- .../cloud/vmware_httpapi/vmware_appliance_access_info.py | 2 +- .../cloud/vmware_httpapi/vmware_appliance_health_info.py | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 changelogs/fragments/vmware_httpapi_fix.yml diff --git a/changelogs/fragments/vmware_httpapi_fix.yml b/changelogs/fragments/vmware_httpapi_fix.yml new file mode 100644 index 00000000000..1cb25a4c5cf --- /dev/null +++ b/changelogs/fragments/vmware_httpapi_fix.yml @@ -0,0 +1,2 @@ +minor_changes: +- Minor typo fixes in vmware_httpapi related modules and module_utils. diff --git a/lib/ansible/module_utils/vmware_httpapi/VmwareRestModule.py b/lib/ansible/module_utils/vmware_httpapi/VmwareRestModule.py index b4949e9bac6..985b317ab8c 100644 --- a/lib/ansible/module_utils/vmware_httpapi/VmwareRestModule.py +++ b/lib/ansible/module_utils/vmware_httpapi/VmwareRestModule.py @@ -635,7 +635,7 @@ class VmwareRestModule(AnsibleModule): if with_filter: self.url += self._build_filter(object_type) except KeyError: - self.handle_object_key_error + self.handle_object_key_error() return self.url def get_url_with_filter(self, object_type): diff --git a/lib/ansible/modules/cloud/vmware_httpapi/vmware_appliance_access_info.py b/lib/ansible/modules/cloud/vmware_httpapi/vmware_appliance_access_info.py index be8c75ada82..b2419b9fe3d 100644 --- a/lib/ansible/modules/cloud/vmware_httpapi/vmware_appliance_access_info.py +++ b/lib/ansible/modules/cloud/vmware_httpapi/vmware_appliance_access_info.py @@ -47,7 +47,7 @@ EXAMPLES = r''' ansible_host: vcenter.my.domain ansible_user: administrator@vsphere.local ansible_httpapi_password: "SomePassword" - ansbile_httpapi_use_ssl: yes + ansible_httpapi_use_ssl: yes ansible_httpapi_validate_certs: false tasks: diff --git a/lib/ansible/modules/cloud/vmware_httpapi/vmware_appliance_health_info.py b/lib/ansible/modules/cloud/vmware_httpapi/vmware_appliance_health_info.py index d2282fabd60..5ab554c00a8 100644 --- a/lib/ansible/modules/cloud/vmware_httpapi/vmware_appliance_health_info.py +++ b/lib/ansible/modules/cloud/vmware_httpapi/vmware_appliance_health_info.py @@ -52,7 +52,7 @@ EXAMPLES = r''' ansible_host: vcenter.my.domain ansible_user: administrator@vsphere.local ansible_httpapi_password: "SomePassword" - ansbile_httpapi_use_ssl: yes + ansible_httpapi_use_ssl: yes ansible_httpapi_validate_certs: false tasks: