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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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