X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=blobdiff_plain;f=web%2FMonitorWeb%2Fmonitorweb%2Fcontrollers.py;h=0cb05d4ce69662ac07d721bb061417f780e7b36a;hp=a3e30211d5a4f3febfe356f6814283447800df15;hb=4d67defe979b409f82bbee2168bfe90ffc184867;hpb=d8c4f261680cbc9cb2708cf12d97202716120dc7 diff --git a/web/MonitorWeb/monitorweb/controllers.py b/web/MonitorWeb/monitorweb/controllers.py index a3e3021..0cb05d4 100644 --- a/web/MonitorWeb/monitorweb/controllers.py +++ b/web/MonitorWeb/monitorweb/controllers.py @@ -19,7 +19,7 @@ from monitor.wrapper.plccache import plcdb_lb2hn as site_lb2hn from monitorweb.templates.links import * -import findbad +from monitor import scanapi def query_to_dict(query): @@ -251,10 +251,10 @@ class Root(controllers.RootController): flash("Reboot appeared to work. All at most 5 minutes. Run ExternalScan to check current status.") elif action == "ExternalScan": - findbad.externalprobe(str(hostname)) + scanapi.externalprobe(str(hostname)) flash("External Scan Successful!") elif action == "InternalScan": - findbad.probe(str(hostname)) + scanapi.internalprobe(str(hostname)) flash("Internal Scan Successful!") else: # unknown action