Skip to content

Commit 8d09e0a

Browse files
committed
Fixed a bug where settings for the customerId, accountId and SNStopic variables at the top of the program were ignored.
1 parent 8b75215 commit 8d09e0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Monitoring/auto-add-cw-alarms/auto_add_cw_alarms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,9 @@ def usage():
556556
dryRun = False
557557
#
558558
# Check to see if there any any environment variables set.
559-
customerId = os.environ.get('customerId', '')
560-
accountId = os.environ.get('accountId', '')
561-
SNStopic = os.environ.get('SNStopic', '')
559+
customerId = os.environ.get('customerId', customerId)
560+
accountId = os.environ.get('accountId', accountId)
561+
SNStopic = os.environ.get('SNStopic', SNStopic)
562562
onlyFilesystemId = None
563563
defaultCPUThreshold = int(os.environ.get('defaultCPUThreshold', defaultCPUThreshold))
564564
defaultSSDThreshold = int(os.environ.get('defaultSSDThreshold', defaultSSDThreshold))

0 commit comments

Comments
 (0)