From f586043ff5a2be7942506f034d80c190f8ba21ba Mon Sep 17 00:00:00 2001 From: Gustavo Pereira Date: Wed, 4 Jan 2023 10:50:25 -0500 Subject: [PATCH] Fix for TypeError in kube-memory This change fixes the TypeError issue in kube-memory stacktrace feature. Resolved issue by adding a decode method to its function return. Tested Plan: Pass: Installed AIO-SX with full deployment, and executed command kube-memory without errors. Pass: Installed AIO-DX with full deployment, and executed command kube-memory without errors. Closes-bug: 1999673 Signed-off-by: Gustavo Pereira Change-Id: Ie18ab617cd38a0aad1020af7ffea388dbfa5e830 --- kube-memory/kube-memory/kube_memory/kube_memory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube-memory/kube-memory/kube_memory/kube_memory.py b/kube-memory/kube-memory/kube_memory/kube_memory.py index 2e13f18..fff32c4 100644 --- a/kube-memory/kube-memory/kube_memory/kube_memory.py +++ b/kube-memory/kube-memory/kube_memory/kube_memory.py @@ -181,7 +181,7 @@ def pipe_command(*cmds, **kwargs): cmd_list[i + 1], stdin=last_popen[i].stdout, stdout=subprocess.PIPE)) last_popen[i].stdout.close() - return last_popen[-1].communicate()[0] + return last_popen[-1].communicate()[0].decode() def gather_groups_memory(output_mem):