From 43d9f02203f944e05b8a11d753d178dc3058c043 Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Tue, 13 Nov 2018 14:24:21 -0800 Subject: [PATCH] Fix putting literal {}s in python format string --- bootstrap/bootstrap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/bootstrap.py b/bootstrap/bootstrap.py index 69ddcf7..58b815a 100644 --- a/bootstrap/bootstrap.py +++ b/bootstrap/bootstrap.py @@ -28,8 +28,8 @@ def get_os_release_variable(key): """ return subprocess.check_output([ '/bin/bash', '-c', - "source /etc/os-release && echo $\{{key}\}".format(key=key) - ]).split() + "source /etc/os-release && echo ${{{key}}}".format(key=key) + ]).trim() def main():