mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
refine metadata routine to get the correct data
This commit is contained in:
parent
d805d7d1d7
commit
b543568896
@ -453,9 +453,10 @@ class SSH(object):
|
||||
host = ret.keys()[0]
|
||||
self.cache_job(jid, host, ret[host])
|
||||
ret = self.key_deploy(host, ret)
|
||||
outputter = ret.get('out', self.opts.get('output', 'nested'))
|
||||
outputter = ret[host].get('out', self.opts.get('output', 'nested'))
|
||||
p_data = {host: ret[host].get('return', {})}
|
||||
salt.output.display_output(
|
||||
ret.get('return', {}),
|
||||
p_data,
|
||||
outputter,
|
||||
self.opts)
|
||||
if self.event:
|
||||
|
Loading…
Reference in New Issue
Block a user