From: Stephen Soltesz Date: Mon, 23 Feb 2009 22:33:01 +0000 (+0000) Subject: fix bug that prevented penalty escallation from occurring. X-Git-Tag: Monitor-1.0-15~2 X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=commitdiff_plain;h=505a38b5abab6dd0e2363de3e6a4f7b1bc5e756a fix bug that prevented penalty escallation from occurring. --- diff --git a/plc.py b/plc.py index f6f8cc3..a41aecb 100644 --- a/plc.py +++ b/plc.py @@ -98,7 +98,7 @@ def getSliceUserEmails(loginbase): """ For the given site, return all user email addresses that have the 'tech' role. """ - #api = getAuthAPI() + api = getAuthAPI() # get site details. s = api.GetSites(loginbase)[0] # get people at site diff --git a/unified_model.py b/unified_model.py index 86c415b..97b0bb7 100755 --- a/unified_model.py +++ b/unified_model.py @@ -567,7 +567,7 @@ class Record(object): contacts += plc.getTechEmails(self.loginbase) if PI & roles: #contacts += [PIEMAIL % self.loginbase] - contacts += plc.getSliceUserEmails(self.loginbase) + contacts += plc.getPIEmails(self.loginbase) if USER & roles: contacts += plc.getSliceUserEmails(self.loginbase) slices = plc.slices(self.loginbase)