from monitor import database
-from monitor.wrapper import plc, plccache
+from monitor.wrapper import plc
from monitor.wrapper import mailer
import time
class Record(object):
def __init__(self, hostname, data):
+ from monitor.wrapper import plccache
self.hostname = hostname
self.data = data
self.plcdb_hn2lb = plccache.plcdb_hn2lb
else:
print "takeAction: increasing penalty for %s"%self.hostname
pp.increase()
+
+ print "takeAction: applying penalty to %s as index %s"% (self.hostname, index)
pp.index = index
pp.apply(self.hostname)
pp.save()
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)