raise QuitGanetiException in LeaveCluster
authorGuido Trotter <ultrotter@google.com>
Fri, 27 Jun 2008 14:27:37 +0000 (14:27 +0000)
committerGuido Trotter <ultrotter@google.com>
Fri, 27 Jun 2008 14:27:37 +0000 (14:27 +0000)
Reviewed-by: iustinp

lib/backend.py

index 50bb630..1fb2aea 100644 (file)
@@ -139,6 +139,9 @@ def LeaveCluster():
   utils.RemoveFile(priv_key)
   utils.RemoveFile(pub_key)
 
+  # Return a reassuring string to the caller, and quit
+  raise errors.QuitGanetiException(False, 'Shutdown scheduled')
+
 
 def GetNodeInfo(vgname):
   """Gives back a hash with different informations about the node.