mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #39933 from hkrist/fix-rawfile_json_returner-format
Fixed rawfile_json returner output format.
This commit is contained in:
commit
2e68edee4a
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ def returner(ret):
|
|||
opts = _get_options({}) # Pass in empty ret, since this is a list of events
|
||||
try:
|
||||
with salt.utils.flopen(opts['filename'], 'a') as logfile:
|
||||
logfile.write(str(ret)+'\n')
|
||||
logfile.write(json.dumps(ret)+'\n')
|
||||
except:
|
||||
log.error('Could not write to rawdata_json file {0}'.format(opts['filename']))
|
||||
raise
|
||||
|
|
Loading…
Add table
Reference in a new issue