Get '.strip()' right

This commit is contained in:
yuvipanda
2018-11-13 14:46:16 -08:00
parent ca38dcd413
commit 599c9d37dd

View File

@@ -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)
]).decode().trim()
]).decode().strip()
def main():