added comonquery command-line tool.
[monitor.git] / monitor / database / info / interface.py
index 2e5064d..7a41b89 100644 (file)
@@ -1,4 +1,3 @@
-import bootman                 # debug nodes
 
 from monitor import reboot
 from monitor.common import *
@@ -162,6 +161,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:
@@ -193,6 +193,6 @@ class SiteInterface(HistorySiteRecord):
                act = ActionRecord(loginbase=self.db.loginbase,
                                                        hostname=hostname,
                                                        action='reboot',
-                                                       action_type='first_try_reboot',
+                                                       action_type='try_reboot',
                                                        error_string=err)