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

Commit

Permalink
removed global vars to avoid caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerpen80 committed May 2, 2024
1 parent 96f5a05 commit b1d33b5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions alarm_creator/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ def get_alarm_params():
Bucket=alarm_bucket,
Key='alarms.json'
)
alarms = alarm_data.get('Body')
alarm_params = alarm_data.get('Body')
alarms = json.load(alarm_params)
return alarms

alarms = json.load(get_alarm_params())

# Load json file containing the alarms
# with open('./alarms.json') as alarms_file:
# alarms = json.load(alarms_file)

# Alarm creator
def AWS_Alarms():
alarms = get_alarm_params()
for service in alarms:

# Fill instances variable with Running instances per service
Expand Down

0 comments on commit b1d33b5

Please sign in to comment.