mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix bug introduced in eee0291ff8
During the cleanup the tuple was made into... nothing that python can interpret
This commit is contained in:
parent
01132c305c
commit
d2aff12f8f
2 changed files with 2 additions and 2 deletions
|
@ -220,7 +220,7 @@ def list_nodes(full=False, call=None):
|
|||
|
||||
for node in nodes:
|
||||
ret[node] = {}
|
||||
for item in 'id', 'image', 'size', 'public_ips', 'private_ips', 'state':
|
||||
for item in ('id', 'image', 'size', 'public_ips', 'private_ips', 'state'):
|
||||
ret[node][item] = nodes[node][item]
|
||||
|
||||
return ret
|
||||
|
|
|
@ -222,7 +222,7 @@ def list_nodes(conn=None, call=None):
|
|||
nodes = list_nodes_full(conn, call)
|
||||
for node in nodes:
|
||||
ret[node] = {}
|
||||
for prop in 'id', 'image', 'name', 'size', 'state', 'private_ips', 'public_ips':
|
||||
for prop in ('id', 'image', 'name', 'size', 'state', 'private_ips', 'public_ips'):
|
||||
ret[node][prop] = nodes[node][prop]
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue