From 2fb476121f33b01de9bc8c7b9bab38fc9694f296 Mon Sep 17 00:00:00 2001 From: Eran Cohen Date: Tue, 24 Aug 2021 15:07:06 +0300 Subject: [PATCH] Fixed shell interpulation TypeError check_output returns a byte string and we need a character (Unicode) string for replace to work --- skipper/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skipper/config.py b/skipper/config.py index d5557bd..8836afa 100644 --- a/skipper/config.py +++ b/skipper/config.py @@ -36,7 +36,7 @@ def _normalize_config(config, normalized_config): def _interpolate_env_vars(key): for match in findall(r'\$\(.+\)', key): - output = check_output("echo " + match, shell=True).strip() + output = check_output("echo " + match, shell=True).strip().decode("utf-8") if not output: raise ValueError(match) key = key.replace(match, output)