X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=monitor%2Fdatabase%2Finfo%2Finterface.py;h=0692edeb8482f70561ff5cf681608998e3ffce41;hb=b38d1bb66c3989ae89b11e7d223259e7120fb163;hp=47c7553ccd08a21a215444e3b14575a36bb3c97f;hpb=7e1b0434bd1f865f7e9d8dff1cebd87d07a8d65d;p=monitor.git diff --git a/monitor/database/info/interface.py b/monitor/database/info/interface.py index 47c7553..0692ede 100644 --- a/monitor/database/info/interface.py +++ b/monitor/database/info/interface.py @@ -1,4 +1,3 @@ -from monitor import bootman # debug nodes from monitor import reboot from monitor.common import * @@ -128,11 +127,12 @@ class SiteInterface(HistorySiteRecord): if viart: self.getTicketStatus() # get current message status + if self.db.message_status not in ['open', 'new']: + self.closeTicket() m = Message(message[0] % args, message[1] % args, viart, self.db.message_id) contacts = self.getContacts() - contacts = [config.cc_email] # TODO: remove after testing... print "sending message: %s to site %s for host %s" % (type, self.db.loginbase, hostname) @@ -162,6 +162,7 @@ class SiteInterface(HistorySiteRecord): self.db.message_status = "new" def runBootManager(self, hostname): + from monitor import bootman print "attempting BM reboot of %s" % hostname ret = "" try: