merge recent v2 changes; migrating to v3
[monitor.git] / RunlevelAgent.py
index 9c7c0a2..cf1c8bf 100644 (file)
@@ -82,6 +82,7 @@ def main():
     session_str=f.read().strip()
     api = PLC(Auth(session=session_str), api_server_url)
     # NOTE: should we rely on bootmanager for this functionality?
+       # TODO: handle dns failure here.
     api.AuthCheck()
 
     try:
@@ -110,8 +111,8 @@ def main():
             #     
             if env == "bootmanager":
                 # if bm not running, and plc bootstate = boot, then
-                api.ReportRunlevel({'run_level' : 'failboot'})
-                api.ReportRunlevel({'run_level' : 'reinstall'})
+                #api.ReportRunlevel({'run_level' : 'failboot'})
+                #api.ReportRunlevel({'run_level' : 'reinstall'})
                 # if bm not running, and plc bootstate = safeboot, then
                 api.ReportRunlevel({'run_level' : 'safeboot'})
             elif env == "production":