mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
if a module returns failed in the results, don't fail unless failed is not false.
This commit is contained in:
@@ -51,5 +51,5 @@ class ReturnData(object):
|
|||||||
return self.comm_ok
|
return self.comm_ok
|
||||||
|
|
||||||
def is_successful(self):
|
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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user