if a module returns failed in the results, don't fail unless failed is not false.

pull/1648/head
Seth Vidal 12 years ago
parent 4c156e4df8
commit e19c81977d

@ -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…
Cancel
Save