Commit f2bdd9af by Piyush

Fix #11369 A result is skipped when all it's children are skipped. This makes it…

Fix #11369 A result is skipped when all it's children are skipped. This makes it fundamentally different from a result that was changed/failed/unreachable
parent ba7243c5
......@@ -40,7 +40,14 @@ class TaskResult:
return self._check_key('changed')
def is_skipped(self):
return self._check_key('skipped')
if 'results' in self._result:
flag = True
for res in self._result.get('results', []):
if isinstance(res, dict):
flag &= res.get('skipped', False)
return flag
else:
return self._result.get('skipped', False)
def is_failed(self):
if 'failed_when_result' in self._result or \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment