fix(callback-mail plugin): fixes the warning 'TaskResult' object has no attribute '__getitem__' because of which its not sending an email on failure (#16547)
This commit is contained in:
parent
288446c9bf
commit
b312a43544
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class CallbackModule(CallbackBase):
|
||||||
subject = res._result['stdout'].strip('\r\n').split('\n')[-1]
|
subject = res._result['stdout'].strip('\r\n').split('\n')[-1]
|
||||||
body += 'with the following output in standard output:\n\n' + res._result['stdout'] + '\n\n'
|
body += 'with the following output in standard output:\n\n' + res._result['stdout'] + '\n\n'
|
||||||
if 'stderr' in res._result.keys() and res._result['stderr']:
|
if 'stderr' in res._result.keys() and res._result['stderr']:
|
||||||
subject = res['stderr'].strip('\r\n').split('\n')[-1]
|
subject = res._result['stderr'].strip('\r\n').split('\n')[-1]
|
||||||
body += 'with the following output in standard error:\n\n' + res._result['stderr'] + '\n\n'
|
body += 'with the following output in standard error:\n\n' + res._result['stderr'] + '\n\n'
|
||||||
if 'msg' in res._result.keys() and res._result['msg']:
|
if 'msg' in res._result.keys() and res._result['msg']:
|
||||||
subject = res._result['msg'].strip('\r\n').split('\n')[0]
|
subject = res._result['msg'].strip('\r\n').split('\n')[0]
|
||||||
|
|
Loading…
Reference in a new issue