no tabs...
authorStephen Soltesz <soltesz@cs.princeton.edu>
Mon, 27 Jul 2009 16:52:07 +0000 (16:52 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Mon, 27 Jul 2009 16:52:07 +0000 (16:52 +0000)
source/BootManager.py

index 1d9a5b5..40f7b56 100755 (executable)
@@ -172,7 +172,7 @@ class BootManager:
         def _nodeNotInstalled(message='MSG_NODE_NOT_INSTALLED'):
             # called by the _xxxState() functions below upon failure
             self.VARS['RUN_LEVEL']= 'failboot'
-                       notify = getattr(notify_messages, message)
+            notify = getattr(notify_messages, message)
             self.VARS['STATE_CHANGE_NOTIFY']= 1
             self.VARS['STATE_CHANGE_NOTIFY_MESSAGE']= notify
             raise BootManagerException, notify
@@ -193,18 +193,18 @@ class BootManager:
 
             InstallInit.Run( self.VARS, self.LOG )                    
             ret = ValidateNodeInstall.Run( self.VARS, self.LOG )
-                       if ret == 1:
+            if ret == 1:
                 WriteModprobeConfig.Run( self.VARS, self.LOG )
                 MakeInitrd.Run( self.VARS, self.LOG )
                 WriteNetworkConfig.Run( self.VARS, self.LOG )
                 CheckForNewDisks.Run( self.VARS, self.LOG )
                 SendHardwareConfigToPLC.Run( self.VARS, self.LOG )
                 ChainBootNode.Run( self.VARS, self.LOG )
-                       elif ret == -1:
+            elif ret == -1:
                 _nodeNotInstalled('MSG_NODE_FILESYSTEM_CORRUPT')
-                       elif ret == -2:
+            elif ret == -2:
                 _nodeNotInstalled('MSG_NODE_MOUNT_FAILED')
-                       elif ret == -3:
+            elif ret == -3:
                 _nodeNotInstalled('MSG_NODE_MISSING_KERNEL')
             else:
                 _nodeNotInstalled()