Blob Blame History Raw
From: Hideo Yamauchi <renayama19661014@ybb.ne.jp>
Date: Fri, 21 Aug 2015 14:12:33 +0900
Subject: [PATCH] Fix: pengine: The failed action of the resource that occurred
 in shutdown is not displayed.

It is like the problem that entered when you summarized an old judgment
in function (record_failed_op) by the next correction.

*
https://github.com/ClusterLabs/pacemaker/commit/9cd666ac15a2998f4543e1dac33edea36bbcf930#diff-7dae505817fa61e544018e581ee45933

(cherry picked from commit 119df5c0bd8fac02bd36e45a28288dcf4624b89d)
---
 lib/pengine/unpack.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/pengine/unpack.c b/lib/pengine/unpack.c
index 0f83be4..156a192 100644
--- a/lib/pengine/unpack.c
+++ b/lib/pengine/unpack.c
@@ -2546,9 +2546,7 @@ record_failed_op(xmlNode *op, node_t* node, pe_working_set_t * data_set)
     xmlNode *xIter = NULL;
     const char *op_key = crm_element_value(op, XML_LRM_ATTR_TASK_KEY);
 
-    if (node->details->shutdown) {
-        return;
-    } else if(node->details->online == FALSE) {
+    if ((node->details->shutdown) && (node->details->online == FALSE)) {
         return;
     }