Andrew Bogott has uploaded a new change for review.
https://gerrit.wikimedia.org/r/266192
Change subject: Don't send puppet nags to the novaadmin user.
......................................................................
Don't send puppet nags to the novaadmin user.
Bug: T124516
Change-Id: Iddf913109e1e9752159a855f72c7ef330ce66d97
---
M modules/base/files/labs/puppetalert.py
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/92/266192/1
diff --git a/modules/base/files/labs/puppetalert.py
b/modules/base/files/labs/puppetalert.py
index facd0e2..8c1f00e 100755
--- a/modules/base/files/labs/puppetalert.py
+++ b/modules/base/files/labs/puppetalert.py
@@ -75,6 +75,11 @@
admins = adminrec[0][1]['roleOccupant']
for admin in admins:
+ if admin.lower().startswith('uid=novaadmin'):
+ # Don't bother to notify the novaadmin user; that just
+ # sends spam to ops@
+ continue
+
userrec = conn.search_s(admin, ldap.SCOPE_BASE)
email = userrec[0][1]['mail'][0]
--
To view, visit https://gerrit.wikimedia.org/r/266192
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iddf913109e1e9752159a855f72c7ef330ce66d97
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits