Merge pull request #1757 from gutoandreollo/devel
Added the 'hw_interfaces' array
This commit is contained in:
commit
a0997e8940
1 changed files with 2 additions and 0 deletions
|
@ -1180,6 +1180,7 @@ def gather_facts(vm):
|
||||||
'hw_product_uuid': vm.properties.config.uuid,
|
'hw_product_uuid': vm.properties.config.uuid,
|
||||||
'hw_processor_count': vm.properties.config.hardware.numCPU,
|
'hw_processor_count': vm.properties.config.hardware.numCPU,
|
||||||
'hw_memtotal_mb': vm.properties.config.hardware.memoryMB,
|
'hw_memtotal_mb': vm.properties.config.hardware.memoryMB,
|
||||||
|
'hw_interfaces':[],
|
||||||
}
|
}
|
||||||
netInfo = vm.get_property('net')
|
netInfo = vm.get_property('net')
|
||||||
netDict = {}
|
netDict = {}
|
||||||
|
@ -1202,6 +1203,7 @@ def gather_facts(vm):
|
||||||
'macaddress_dash': entry.macAddress.replace(':', '-'),
|
'macaddress_dash': entry.macAddress.replace(':', '-'),
|
||||||
'summary': entry.deviceInfo.summary,
|
'summary': entry.deviceInfo.summary,
|
||||||
}
|
}
|
||||||
|
facts['hw_interfaces'].append('eth'+str(ifidx))
|
||||||
|
|
||||||
ifidx += 1
|
ifidx += 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue