diff --git a/lib/ansible/executor/stats.py b/lib/ansible/executor/stats.py index 527197fd1b..07ea73dbea 100644 --- a/lib/ansible/executor/stats.py +++ b/lib/ansible/executor/stats.py @@ -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): diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index ae1a9fdebf..9d739dc928 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -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