mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
0b295e2c87
commit
ce88b6ad41
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue