From e3af54ffddbbefa7253c6e8d7043f530476d6be1 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Wed, 4 Dec 2019 02:45:23 +0530 Subject: [PATCH] [2.9] VMware: Fix get_tags_for_vm API in vmware_vm_info module (#64821) Signed-off-by: Abhijeet Kasurde (cherry picked from commit e7c6134fd03770e6c92008dbc9f633a28c897934) --- lib/ansible/modules/cloud/vmware/vmware_vm_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/vmware/vmware_vm_info.py b/lib/ansible/modules/cloud/vmware/vmware_vm_info.py index de1368f1e57..c10e98219ff 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_vm_info.py +++ b/lib/ansible/modules/cloud/vmware/vmware_vm_info.py @@ -205,7 +205,7 @@ class VmwareVmInfo(PyVmomi): def get_tag_info(self, vm_dynamic_obj): vmware_client = VmwareRestClient(self.module) - return vmware_client.get_tags_for_vm(vm_id=vm_dynamic_obj._moId) + return vmware_client.get_tags_for_vm(vm_mid=vm_dynamic_obj._moId) def get_vm_attributes(self, vm): return dict((x.name, v.value) for x in self.custom_field_mgr