mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #1517 from skvidal/devel
if a module returns failed in the results, don't fail unless failed is n...
This commit is contained in:
commit
49ad8631b4
1 changed files with 1 additions and 1 deletions
|
@ -51,5 +51,5 @@ class ReturnData(object):
|
|||
return self.comm_ok
|
||||
|
||||
def is_successful(self):
|
||||
return self.comm_ok and ('failed' not in self.result) and (self.result.get('rc',0) == 0)
|
||||
return self.comm_ok and (self.result.get('failed', False) == False) and (self.result.get('rc',0) == 0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue