mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix PEP8 issue
This commit is contained in:
parent
57b85198fe
commit
63c6afeaee
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ class CallbackModule(CallbackBase):
|
|||
# Add subject
|
||||
if self.itembody:
|
||||
subject = self.itemsubject
|
||||
elif result._result.get('failed_when_result') == True:
|
||||
elif result._result.get('failed_when_result') is True:
|
||||
subject = "Failed due to 'failed_when' condition"
|
||||
elif result._result.get('exception'):
|
||||
subject = self.subject_msg(result._result['exception'], failtype, -1)
|
||||
|
@ -134,7 +134,7 @@ class CallbackModule(CallbackBase):
|
|||
# Add item / message
|
||||
if self.itembody:
|
||||
body += self.itembody
|
||||
elif result._result.get('failed_when_result') == True:
|
||||
elif result._result.get('failed_when_result') is True:
|
||||
body += "due to the following condition:\n\n" + self.indent('failed_when:\n- ' + '\n- '.join(result._task.failed_when)) + '\n\n'
|
||||
elif result._result.get('msg'):
|
||||
body += self.body_blob(result._result['msg'], 'message')
|
||||
|
|
Loading…
Reference in a new issue