Skip to content

Commit

Permalink
Fix reading outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
dflook committed Dec 7, 2023
1 parent 3096e73 commit da4cb6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions image/src/github_pr_comment/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,11 @@ def format_output_status(outputs: Optional[dict]) -> str:

def read_outputs(path: str) -> Optional[dict]:
try:
with open(path, 'w') as f:
with open(path, 'r') as f:
return json.load(f)
except:
except Exception as e:
debug(f'Failed to read terraform outputs from {path}')
debug(str(e))
return None

def main() -> int:
Expand Down

0 comments on commit da4cb6c

Please sign in to comment.