From 269cdffcea542682f4f8b577811df1db0f4c43b1 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Thu, 21 Feb 2019 11:43:45 -0600 Subject: [PATCH] Format dict keys need to be bytes (#52728) --- lib/ansible/plugins/callback/cgroup_perf_recap.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/plugins/callback/cgroup_perf_recap.py b/lib/ansible/plugins/callback/cgroup_perf_recap.py index 964dedaa22..c945301148 100644 --- a/lib/ansible/plugins/callback/cgroup_perf_recap.py +++ b/lib/ansible/plugins/callback/cgroup_perf_recap.py @@ -256,10 +256,10 @@ class CallbackModule(CallbackBase): for feature in self._features: data = { - 'counter': to_bytes(self._counter), - 'task_uuid': to_bytes(task_uuid), - 'feature': to_bytes(feature), - 'ext': to_bytes(output_format) + b'counter': to_bytes(self._counter), + b'task_uuid': to_bytes(task_uuid), + b'feature': to_bytes(feature), + b'ext': to_bytes(output_format) } if self._files.get(feature):