mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #34368 from rallytime/merge-2015.8
[2015.8] Merge forward from 2015.5 to 2015.8
This commit is contained in:
commit
af8ef1e461
1 changed files with 12 additions and 7 deletions
|
@ -299,13 +299,18 @@ def list_nodes(conn=None, call=None):
|
|||
# so we hide the running vm from being seen as already installed
|
||||
# do not also mask half configured nodes which are explicitly asked
|
||||
# to be acted on, on the command line
|
||||
if (
|
||||
(call in ['full'] or not hide) and (
|
||||
(lxcc in names and call in ['action']) or (
|
||||
call in ['full'])
|
||||
)
|
||||
):
|
||||
nodes[lxcc] = info
|
||||
if (call in ['full'] or not hide) and ((lxcc in names and call in ['action']) or call in ['full']):
|
||||
nodes[lxcc] = {
|
||||
'id': lxcc,
|
||||
'name': lxcc, # required for cloud cache
|
||||
'image': None,
|
||||
'size': linfos['size'],
|
||||
'state': state.lower(),
|
||||
'public_ips': linfos['public_ips'],
|
||||
'private_ips': linfos['private_ips'],
|
||||
}
|
||||
else:
|
||||
nodes[lxcc] = {'id': lxcc, 'state': state.lower()}
|
||||
return nodes
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue