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:
#
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":