Fix issue ansible/ansible#59059 (#15)

When no sorting was selected, `result` was a `odict_items` which is not
subscriptable, so the slicing was failing.
This commit is contained in:
Alexandre Garnier
2020-04-29 22:17:03 +02:00
committed by GitHub
parent c217a9bf8d
commit 8a11a72e0c

View File

@@ -172,7 +172,7 @@ class CallbackModule(CallbackBase):
timestamp(self)
self.current = None
results = self.stats.items()
results = list(self.stats.items())
# Sort the tasks by the specified sort
if self.sort_order is not None: