mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #40747 from markuskramerIgitt/variables_naming
variable names more speaking
This commit is contained in:
commit
6c8410e7be
@ -64,15 +64,15 @@ def returner(ret):
|
||||
raise
|
||||
|
||||
|
||||
def event_return(event):
|
||||
def event_return(events):
|
||||
'''
|
||||
Write event return data to a file on the master.
|
||||
'''
|
||||
opts = _get_options({}) # Pass in empty ret, since this is a list of events
|
||||
try:
|
||||
with salt.utils.flopen(opts['filename'], 'a') as logfile:
|
||||
for e in event:
|
||||
logfile.write(str(json.dumps(e))+'\n')
|
||||
for event in events:
|
||||
logfile.write(str(json.dumps(event))+'\n')
|
||||
except:
|
||||
log.error('Could not write to rawdata_json file {0}'.format(opts['filename']))
|
||||
raise
|
||||
|
Loading…
Reference in New Issue
Block a user