reviewable/pr18780/r1
James Tanner 8 years ago
parent 07fb05a852
commit 5d2d0e0045

@ -326,11 +326,8 @@ class PyVmomiHelper(object):
if current_state == expected_state:
result['changed'] = False
result['failed'] = False
else:
task = None
try:
if expected_state == 'poweredoff':
task = vm.PowerOff()
@ -387,9 +384,6 @@ class PyVmomiHelper(object):
mac = device.macAddress
ips = list(device.ipAddress)
netDict[mac] = ips
#facts['network'] = {}
#facts['network']['ipaddress_v4'] = None
#facts['network']['ipaddress_v6'] = None
for k,v in netDict.iteritems():
for ipaddress in v:
if ipaddress:
@ -399,7 +393,6 @@ class PyVmomiHelper(object):
facts['ipv4'] = ipaddress
for idx,entry in enumerate(vm.config.hardware.device):
if not hasattr(entry, 'macAddress'):
continue
@ -414,7 +407,6 @@ class PyVmomiHelper(object):
}
facts['hw_interfaces'].append('eth'+str(idx))
#import epdb; epdb.st()
return facts

Loading…
Cancel
Save