Skip to content

Commit

Permalink
Fix applying of attributes for returner rawfile_json
Browse files Browse the repository at this point in the history
Arguments are not getting applied to the rawfile_json returner. For example if you specify an alternate filename for the output the default "/var/log/salt/events" is always used. Passing the `ret` to `_get_options(ret) resolve this.
  • Loading branch information
rbthomp committed Oct 16, 2018
1 parent b939e9a commit 0694cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/returners/rawfile_json.py
Expand Up @@ -55,7 +55,7 @@ def returner(ret):
'''
Write the return data to a file on the minion.
'''
opts = _get_options({}) # Pass in empty ret, since this is a list of events
opts = _get_options(ret)
try:
with salt.utils.files.flopen(opts['filename'], 'a') as logfile:
salt.utils.json.dump(ret, logfile)
Expand Down

0 comments on commit 0694cdf

Please sign in to comment.