Fixing v2 code for test_yum and added capability to squash items

This commit is contained in:
James Cammarata
2015-01-20 01:16:19 -06:00
parent 5addbe7956
commit eae9a406ad
4 changed files with 25 additions and 10 deletions

View File

@@ -55,6 +55,7 @@ class TaskResult:
if 'results' in self._result:
flag = False
for res in self._result.get('results', []):
flag |= res.get(key, False)
if isinstance(res, dict):
flag |= res.get(key, False)
else:
return self._result.get(key, False)