From a11b28e5ef7448169d49de899ef79ac240b52d7f Mon Sep 17 00:00:00 2001 From: davidlatwe Date: Sun, 16 Jan 2022 19:11:43 +0800 Subject: [PATCH] fix turning env keys to lowercase --- src/rezup/container.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/rezup/container.py b/src/rezup/container.py index a1d3321..948a3f2 100644 --- a/src/rezup/container.py +++ b/src/rezup/container.py @@ -568,8 +568,11 @@ def file_loader(d): recipe_env = recipe.get("env") if recipe_env: stream = StringIO() - parsed_recipe_env = ConfigParser(recipe_env) - parsed_recipe_env.write(stream) + + _parser = ConfigParser() + _parser.optionxform = str # to prevent turning keys into lowercase + _parser.read_dict({"env": recipe_env}) + _parser.write(stream) stream.seek(0) # must reset buffer env.update(load_env(stream=stream))