mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
sentry_return: returner.connect_sentry() being called w/ too many args
This commit is contained in:
parent
89c396f31c
commit
47d9bd1a34
@ -70,15 +70,15 @@ def returner(ret):
|
||||
try:
|
||||
if 'success' not in ret:
|
||||
logger.debug('no success data, report')
|
||||
connect_sentry(ret['return'], ret)
|
||||
connect_sentry(ret['return'])
|
||||
else:
|
||||
if not ret['success']:
|
||||
logger.debug('not a success, report')
|
||||
connect_sentry(ret['return'], ret)
|
||||
connect_sentry(ret['return'])
|
||||
else:
|
||||
for state in ret['return']:
|
||||
if not ret['return'][state]['result'] and \
|
||||
ret['return'][state]['comment'] != requisite_error:
|
||||
connect_sentry(state, ret['return'][state])
|
||||
connect_sentry(state)
|
||||
except Exception as err:
|
||||
logger.error("Can't run connect_sentry: %s", err, exc_info=True)
|
||||
|
Loading…
Reference in New Issue
Block a user