[2.9] Typecast results before use in profile_tasks callback (#69665)

If user specifies sort_order to none, results are not converted to list.
This fix force this typecasting before using the results.

Fixes: ansible/ansible#69563

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

@ -0,0 +1,2 @@
bugfixes:
- profile_tasks - typecast results before using it (https://github.com/ansible/ansible/issues/69563).

@ -184,7 +184,7 @@ class CallbackModule(CallbackBase):
)
# Display the number of tasks specified or the default of 20
results = results[:self.task_output_limit]
results = list(results)[:self.task_output_limit]
# Print the timings
for uuid, result in results:

Loading…
Cancel
Save