profile_tasks: typecast result before slicing it (#70835)

Backport of https://github.com/ansible-collections/ansible.posix/pull/15

Fixes: #59059

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/70851/head
Abhijeet Kasurde 5 years ago committed by GitHub
parent 76815d3afc
commit 78592ffd68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- profile_tasks - typecast result before slicing it (https://github.com/ansible/ansible/issues/59059).

@ -173,7 +173,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:

Loading…
Cancel
Save