Skip to content

Commit

Permalink
Merge pull request #213 from NetApp/fix_for_issue_212
Browse files Browse the repository at this point in the history
Fix for issue # 212
  • Loading branch information
kcantrel authored Feb 3, 2025
2 parents 8b75215 + 74df38f commit 7a9d925
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Monitoring/auto-add-cw-alarms/auto_add_cw_alarms.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,9 @@ def usage():
dryRun = False
#
# Check to see if there any any environment variables set.
customerId = os.environ.get('customerId', '')
accountId = os.environ.get('accountId', '')
SNStopic = os.environ.get('SNStopic', '')
customerId = os.environ.get('customerId', customerId)
accountId = os.environ.get('accountId', accountId)
SNStopic = os.environ.get('SNStopic', SNStopic)
onlyFilesystemId = None
defaultCPUThreshold = int(os.environ.get('defaultCPUThreshold', defaultCPUThreshold))
defaultSSDThreshold = int(os.environ.get('defaultSSDThreshold', defaultSSDThreshold))
Expand Down
10 changes: 5 additions & 5 deletions Monitoring/auto-add-cw-alarms/cloudformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ Resources:
# Lastly, you can create an override for the SSD alarm, by creating a tag
# with the name "SSD_Alarm_Threshold" on the file system resource.
#
# Version: v2.13
# Date: 2024-10-03-12:30:21
# Version: v2.1
# Date: 2025-01-31-20:33:33
#
################################################################################
#
Expand Down Expand Up @@ -719,9 +719,9 @@ Resources:
dryRun = False
#
# Check to see if there any any environment variables set.
customerId = os.environ.get('customerId', '')
accountId = os.environ.get('accountId', '')
SNStopic = os.environ.get('SNStopic', '')
customerId = os.environ.get('customerId', customerId)
accountId = os.environ.get('accountId', accountId)
SNStopic = os.environ.get('SNStopic', SNStopic)
onlyFilesystemId = None
defaultCPUThreshold = int(os.environ.get('defaultCPUThreshold', defaultCPUThreshold))
defaultSSDThreshold = int(os.environ.get('defaultSSDThreshold', defaultSSDThreshold))
Expand Down

0 comments on commit 7a9d925

Please sign in to comment.