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 <gustavo.lyrapereira@windriver.com> Change-Id: Ie18ab617cd38a0aad1020af7ffea388dbfa5e830
This commit is contained in:
parent
4e2a8fcba8
commit
f586043ff5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user