mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-08-01 04:14:46 +00:00
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:
committed by
GitHub
parent
c217a9bf8d
commit
8a11a72e0c
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user