[2.9] VMware: Fix get_tags_for_vm API in vmware_vm_info module (#64821)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit e7c6134fd0)
pull/64874/merge
Abhijeet Kasurde 5 years ago committed by Matt Davis
parent 18af2d257f
commit e3af54ffdd

@ -205,7 +205,7 @@ class VmwareVmInfo(PyVmomi):
def get_tag_info(self, vm_dynamic_obj): def get_tag_info(self, vm_dynamic_obj):
vmware_client = VmwareRestClient(self.module) 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): def get_vm_attributes(self, vm):
return dict((x.name, v.value) for x in self.custom_field_mgr return dict((x.name, v.value) for x in self.custom_field_mgr

Loading…
Cancel
Save