From be6c4908a2719e4608757087dd72b568db743655 Mon Sep 17 00:00:00 2001 From: TaoBeier Date: Fri, 18 Aug 2017 20:55:48 +0800 Subject: [PATCH] executor stats and task_executor pep8 error (#23651) --- lib/ansible/executor/stats.py | 2 +- lib/ansible/executor/task_executor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/executor/stats.py b/lib/ansible/executor/stats.py index 527197fd1ba..07ea73dbeac 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 ae1a9fdebf9..9d739dc928c 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