projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3d7f69
)
raise QuitGanetiException in LeaveCluster
author
Guido Trotter
<ultrotter@google.com>
Fri, 27 Jun 2008 14:27:37 +0000
(14:27 +0000)
committer
Guido Trotter
<ultrotter@google.com>
Fri, 27 Jun 2008 14:27:37 +0000
(14:27 +0000)
Reviewed-by: iustinp
lib/backend.py
patch
|
blob
|
history
diff --git
a/lib/backend.py
b/lib/backend.py
index
50bb630
..
1fb2aea
100644
(file)
--- 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.