git://git.onelab.eu
/
bootmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Disconnected operation.
[bootmanager.git]
/
source
/
steps
/
AuthenticateWithPLC.py
diff --git
a/source/steps/AuthenticateWithPLC.py
b/source/steps/AuthenticateWithPLC.py
index
55511dc
..
dddb5ee
100644
(file)
--- 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 )
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
# increment auth failure
auth_failure_count= 0