From ca38dcd41337780a6d1408ba589c3a2e9b7bb41b Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Tue, 13 Nov 2018 14:40:24 -0800 Subject: [PATCH] Decode output from subprocess before performing string operations --- bootstrap/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/bootstrap.py b/bootstrap/bootstrap.py index 58b815a..255bdb3 100644 --- a/bootstrap/bootstrap.py +++ b/bootstrap/bootstrap.py @@ -29,7 +29,7 @@ def get_os_release_variable(key): return subprocess.check_output([ '/bin/bash', '-c', "source /etc/os-release && echo ${{{key}}}".format(key=key) - ]).trim() + ]).decode().trim() def main():