Merge pull request #52696 from Ch3LL/bp-50087

Backport #50087 into 2019.2.1
This commit is contained in:
Daniel Wozniak 2019-04-25 13:33:12 -07:00 committed by GitHub
commit 806307aecf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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