from monitor.common import email_exception, found_within
from monitor.database.info.model import *
from monitor.wrapper import plc
+from monitor.wrapper import plccache
from monitor.wrapper.emailTxt import mailtxt
from pcucontrol.util import command as moncommands
ReadNodeConfiguration = c.modules.BootManager.ReadNodeConfiguration
bm_continue = True
- plcnode = api.GetNodes({'hostname': self.node}, None)[0]
+ plcnode = plccache.GetNodeByName(self.node)
InitializeBootManager.Run(bm.VARS, bm.LOG)
try: ReadNodeConfiguration.Run(bm.VARS, bm.LOG)
print "...NOTIFYING OWNERS OF DNS FAILURE on %s!!!" % hostname
args = {}
try:
- node = api.GetNodes(hostname)[0]
+ node = plccache.GetNodeByName(hostname)
net = api.GetNodeNetworks(node['nodenetwork_ids'])[0]
except:
email_exception()