diff --git a/cloud/vmware/vsphere_guest.py b/cloud/vmware/vsphere_guest.py index 9ed6ede21c2..8d8d8279c22 100644 --- a/cloud/vmware/vsphere_guest.py +++ b/cloud/vmware/vsphere_guest.py @@ -1092,6 +1092,7 @@ def gather_facts(vm): 'hw_product_uuid': vm.properties.config.uuid, 'hw_processor_count': vm.properties.config.hardware.numCPU, 'hw_memtotal_mb': vm.properties.config.hardware.memoryMB, + 'hw_interfaces':[], } netInfo = vm.get_property('net') netDict = {} @@ -1114,6 +1115,7 @@ def gather_facts(vm): 'macaddress_dash': entry.macAddress.replace(':', '-'), 'summary': entry.deviceInfo.summary, } + facts['hw_interfaces'].append('eth'+str(ifidx)) ifidx += 1