executor stats and task_executor pep8 error (#23651)
This commit is contained in:
parent
6fd579b9f5
commit
be6c4908a2
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ class AggregateStats:
|
|||
failures=self.failures.get(host, 0),
|
||||
unreachable=self.dark.get(host, 0),
|
||||
changed=self.changed.get(host, 0),
|
||||
skipped=self.skipped.get(host, 0),
|
||||
skipped=self.skipped.get(host, 0)
|
||||
)
|
||||
|
||||
def set_custom_stats(self, which, what, host=None):
|
||||
|
|
|
@ -148,7 +148,7 @@ class TaskExecutor:
|
|||
else:
|
||||
raise
|
||||
elif isinstance(res, list):
|
||||
for (idx, item) in enumerate(res):
|
||||
for idx, item in enumerate(res):
|
||||
res[idx] = _clean_res(item, errors=errors)
|
||||
return res
|
||||
|
||||
|
|
Loading…
Reference in a new issue