refine metadata routine to get the correct data

This commit is contained in:
Thomas S Hatch 2014-09-02 21:01:49 -06:00
parent d805d7d1d7
commit b543568896

View File

@ -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: