1 file changed, 3 insertions(+)
tools/crm.in | 3 +++
# HG changeset patch
# User Dejan Muhamedagic <[EMAIL PROTECTED]>
# Date 1226420160 -3600
# Branch stable-1.0
# Node ID addc10e37d7fe045d459cd5be769c614859da128
# Parent b91df25acab4041ed9972d89428766683a611980
Low (bnc#443792): Tools: cli: don't delete shadow cibs which are currently in use
diff --git a/tools/crm.in b/tools/crm.in
--- a/tools/crm.in
+++ b/tools/crm.in
@@ -405,6 +405,9 @@ provided is empty, then the live (cluste
common_err("failed to create %s shadow CIB"%name)
def delete(self,cmd,name):
"usage: delete <shadow_cib>"
+ if cib_in_use == name:
+ common_err("%s shadow CIB is in use"%name)
+ return
if ext_cmd("%s -D %s --force" % (self.extcmd,name)) == 0:
common_info("%s shadow CIB deleted"%name)
else:
_______________________________________________
Pacemaker mailing list
[email protected]
http://list.clusterlabs.org/mailman/listinfo/pacemaker