From 6d8b6238368ae05a63bb825ae5d818f016946a70 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Fri, 27 Jun 2008 14:27:37 +0000
Subject: [PATCH] raise QuitGanetiException in LeaveCluster

Reviewed-by: iustinp
---
 lib/backend.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/backend.py b/lib/backend.py
index 50bb6308f..1fb2aea87 100644
--- a/lib/backend.py
+++ b/lib/backend.py
@@ -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.
-- 
GitLab