Skip to content

Commit

Permalink
Merge pull request #289 from terrateamio/main
Browse files Browse the repository at this point in the history
Release v1
  • Loading branch information
orbitz authored Jun 28, 2024
2 parents b1fef12 + 5b60193 commit 037f117
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terrat_runner/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ def set_env_context(env, key):
try:
vals = json.loads(context)

for k, v in vals.items():
env[k] = str(v)
if vals:
for k, v in vals.items():
env[k] = str(v)
except json.decoder.JSONDecodeError as exn:
logging.error('Failed to decode {}'.format(key))
logging.exception(exn)
Expand Down

0 comments on commit 037f117

Please sign in to comment.