Blame SOURCES/bz1257369-01-always-print-output-of-crm_resource-cleanup.patch

71541a
From 122c7b6b5d31fdc0cf997aeb01252fb4c8801da5 Mon Sep 17 00:00:00 2001
71541a
From: Tomas Jelinek <tojeline@redhat.com>
71541a
Date: Fri, 4 Sep 2015 17:12:27 +0200
71541a
Subject: [PATCH] always print output of crm_resource --cleanup
71541a
71541a
---
71541a
 pcs/resource.py | 4 ++--
71541a
 1 file changed, 2 insertions(+), 2 deletions(-)
71541a
71541a
diff --git a/pcs/resource.py b/pcs/resource.py
71541a
index 2dcddc3..be1f1ba 100644
71541a
--- a/pcs/resource.py
71541a
+++ b/pcs/resource.py
71541a
@@ -2559,14 +2559,14 @@ def resource_cleanup(res_id):
71541a
     if retval != 0:
71541a
         utils.err("Unable to cleanup resource: %s" % res_id + "\n" + output)
71541a
     else:
71541a
-        print "Resource: %s successfully cleaned up" % res_id
71541a
+        print output
71541a
 
71541a
 def resource_cleanup_all():
71541a
     (output, retval) = utils.run(["crm_resource", "-C"])
71541a
     if retval != 0:
71541a
         utils.err("Unexpected error occured. 'crm_resource -C' err_code: %s\n%s" % (retval, output))
71541a
     else:
71541a
-        print "All resources/stonith devices successfully cleaned up"
71541a
+        print output
71541a
 
71541a
 def resource_history(args):
71541a
     dom = utils.get_cib_dom()
71541a
-- 
71541a
1.9.1
71541a