svn:keywords
[bootmanager.git] / source / steps / AuthenticateWithPLC.py
index 55511dc..7708268 100644 (file)
@@ -1,5 +1,8 @@
-#!/usr/bin/python2
-
+#!/usr/bin/python
+#
+# $Id$
+# $URL$
+#
 # Copyright (c) 2003 Intel Corporation
 # All rights reserved.
 #
@@ -56,6 +59,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