Merge pull request #22803 from rallytime/fix-17144

Allow map file to work with softlayer
This commit is contained in:
Joseph Hall 2015-04-17 14:34:42 -06:00
commit 11df71e16d

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