Skip to content

Commit

Permalink
Merge pull request #268 from terrateamio/main
Browse files Browse the repository at this point in the history
Release v1
  • Loading branch information
orbitz authored May 17, 2024
2 parents 0e2fff8 + 6241e61 commit 531792f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion terrat_runner/repo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ def load(paths):
for path in paths:
if os.path.exists(path):
with open(path, 'r') as f:
return yaml.safe_load(f.read())
content = f.read()
if content.strip():
return yaml.safe_load(content)
else:
return {}

return {}

Expand Down

0 comments on commit 531792f

Please sign in to comment.