1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

executor stats and task_executor pep8 error (#23651)

This commit is contained in:
TaoBeier 2017-08-18 20:55:48 +08:00 committed by ansibot
parent 6fd579b9f5
commit be6c4908a2
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ class AggregateStats:
failures=self.failures.get(host, 0), failures=self.failures.get(host, 0),
unreachable=self.dark.get(host, 0), unreachable=self.dark.get(host, 0),
changed=self.changed.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): def set_custom_stats(self, which, what, host=None):

View file

@ -148,7 +148,7 @@ class TaskExecutor:
else: else:
raise raise
elif isinstance(res, list): elif isinstance(res, list):
for (idx, item) in enumerate(res): for idx, item in enumerate(res):
res[idx] = _clean_res(item, errors=errors) res[idx] = _clean_res(item, errors=errors)
return res return res