Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue # 212 #213

Merged
merged 2 commits into from
Feb 3, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixed a bug where settings for the customerId, accountId and SNStopic…
… variables at the top of the program were ignored.
kcantrel committed Jan 31, 2025
commit 8d09e0a342c437ff042d1e866005838600566466
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
@@ -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))