diff --git a/show/main.py b/show/main.py index 01fd592c7a..1821f6c9d8 100755 --- a/show/main.py +++ b/show/main.py @@ -78,7 +78,7 @@ def get_routing_stack(): command = "sudo docker ps | grep bgp | awk '{print$2}' | cut -d'-' -f3 | cut -d':' -f1 | head -n 1" try: - stdout = subprocess.check_output(command, shell=True, timeout=COMMAND_TIMEOUT) + stdout = subprocess.check_output(command, shell=True, text=True, timeout=COMMAND_TIMEOUT) result = stdout.rstrip('\n') except Exception as err: click.echo('Failed to get routing stack: {}'.format(err), err=True)