Fix putting literal {}s in python format string

This commit is contained in:
yuvipanda
2018-11-13 14:24:21 -08:00
parent e9462bb7ae
commit 43d9f02203

View File

@@ -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():