Skip to content

Commit 7a9d925

Browse files
authored
Merge pull request #213 from NetApp/fix_for_issue_212
Fix for issue # 212
2 parents 8b75215 + 74df38f commit 7a9d925

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
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))

Monitoring/auto-add-cw-alarms/cloudformation.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ Resources:
190190
# Lastly, you can create an override for the SSD alarm, by creating a tag
191191
# with the name "SSD_Alarm_Threshold" on the file system resource.
192192
#
193-
# Version: v2.13
194-
# Date: 2024-10-03-12:30:21
193+
# Version: v2.1
194+
# Date: 2025-01-31-20:33:33
195195
#
196196
################################################################################
197197
#
@@ -719,9 +719,9 @@ Resources:
719719
dryRun = False
720720
#
721721
# Check to see if there any any environment variables set.
722-
customerId = os.environ.get('customerId', '')
723-
accountId = os.environ.get('accountId', '')
724-
SNStopic = os.environ.get('SNStopic', '')
722+
customerId = os.environ.get('customerId', customerId)
723+
accountId = os.environ.get('accountId', accountId)
724+
SNStopic = os.environ.get('SNStopic', SNStopic)
725725
onlyFilesystemId = None
726726
defaultCPUThreshold = int(os.environ.get('defaultCPUThreshold', defaultCPUThreshold))
727727
defaultSSDThreshold = int(os.environ.get('defaultSSDThreshold', defaultSSDThreshold))

0 commit comments

Comments
 (0)