Blame SOURCES/0009-Fix-pengine-The-failed-action-of-the-resource-that-o.patch

3d71c6
From: Hideo Yamauchi <renayama19661014@ybb.ne.jp>
3d71c6
Date: Fri, 21 Aug 2015 14:12:33 +0900
3d71c6
Subject: [PATCH] Fix: pengine: The failed action of the resource that occurred
3d71c6
 in shutdown is not displayed.
3d71c6
3d71c6
It is like the problem that entered when you summarized an old judgment
3d71c6
in function (record_failed_op) by the next correction.
3d71c6
3d71c6
*
3d71c6
https://github.com/ClusterLabs/pacemaker/commit/9cd666ac15a2998f4543e1dac33edea36bbcf930#diff-7dae505817fa61e544018e581ee45933
3d71c6
3d71c6
(cherry picked from commit 119df5c0bd8fac02bd36e45a28288dcf4624b89d)
3d71c6
---
3d71c6
 lib/pengine/unpack.c | 4 +---
3d71c6
 1 file changed, 1 insertion(+), 3 deletions(-)
3d71c6
3d71c6
diff --git a/lib/pengine/unpack.c b/lib/pengine/unpack.c
3d71c6
index 0f83be4..156a192 100644
3d71c6
--- a/lib/pengine/unpack.c
3d71c6
+++ b/lib/pengine/unpack.c
3d71c6
@@ -2546,9 +2546,7 @@ record_failed_op(xmlNode *op, node_t* node, pe_working_set_t * data_set)
3d71c6
     xmlNode *xIter = NULL;
3d71c6
     const char *op_key = crm_element_value(op, XML_LRM_ATTR_TASK_KEY);
3d71c6
 
3d71c6
-    if (node->details->shutdown) {
3d71c6
-        return;
3d71c6
-    } else if(node->details->online == FALSE) {
3d71c6
+    if ((node->details->shutdown) && (node->details->online == FALSE)) {
3d71c6
         return;
3d71c6
     }
3d71c6