X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FAuthenticateWithPLC.py;h=dddb5ee2a13f0dab9f43958581eb7f8761220f07;hb=07139b606dfc3c657ef7d06da25c084c1679b660;hp=55511dc22c036040501d77c8c45fb66546bfef9f;hpb=89ab0b2239cef500f4c5401257f32f9f8c8b4d7b;p=bootmanager.git diff --git a/source/steps/AuthenticateWithPLC.py b/source/steps/AuthenticateWithPLC.py index 55511dc..dddb5ee 100644 --- a/source/steps/AuthenticateWithPLC.py +++ b/source/steps/AuthenticateWithPLC.py @@ -56,6 +56,13 @@ def Run( vars, log ): return 1 except BootManagerException, e: log.write( "Authentication failed: %s.\n" % e ) + except: + # This is ugly. + if vars['DISCONNECTED_OPERATION']: + vars['API_SERVER_INST']= None + return 1 + else: + raise # increment auth failure auth_failure_count= 0