Allow map file to work with softlayer

Refs #17144
This commit is contained in:
rallytime 2015-04-17 13:33:22 -06:00
parent 0b295e2c87
commit ce88b6ad41

View file

@ -571,6 +571,8 @@ def list_nodes(call=None):
ret[node]['public_ips'] = nodes[node]['primaryIpAddress']
if 'primaryBackendIpAddress' in nodes[node]:
ret[node]['private_ips'] = nodes[node]['primaryBackendIpAddress']
if 'status' in nodes[node]:
ret[node]['state'] = str(nodes[node]['status']['name'])
return ret