Skip to content

Commit

Permalink
Merge pull request #60 from davidlatwe/fix_env_key_lowercased
Browse files Browse the repository at this point in the history
fix turning env keys to lowercase
  • Loading branch information
davidlatwe authored Jan 16, 2022
2 parents cf100fa + a11b28e commit b15ebe0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/rezup/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b15ebe0

Please sign in to comment.