print_jobs was duplicating results

The display output was indented at the wrong place, therefore adding results each time there's a return_data.
This commit is contained in:
Wari Wahab 2013-10-18 17:32:57 +08:00
parent 0143e78877
commit cec5bf2710

View File

@ -208,5 +208,6 @@ def print_job(job_id):
'Target-type': load['tgt_type'],
'User': load.get('user', 'root'),
'Result': hosts_return}
salt.output.display_output(ret, 'yaml', __opts__)
salt.output.display_output(ret, 'yaml', __opts__)
return ret