Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
updated alarms json logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Ng committed Apr 17, 2024
1 parent 20e283d commit abe4a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alarm_creator/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
# Create Lambda layer create if statement to choose which one depending on which variable is enabled.


# Load json file containing the alarms, checks if it needs to use a custom alarms json or defaul json.
# Load json file containing the alarms, checks if it needs to use a custom alarms json or default json.
if custom_alert_action == "true":
with open('./custom_alarms.json') as alarms_file:
with open('/opt/custom_alarms.json') as alarms_file:
alarms = json.load(alarms_file)
else:
with open('./alarms.json') as alarms_file:
Expand Down

0 comments on commit abe4a1e

Please sign in to comment.