|
|
185308 |
From fe9150bc4b740b3748fec34fe668df4f8c0d0e25 Mon Sep 17 00:00:00 2001
|
|
|
185308 |
From: Ken Gaillot <kgaillot@redhat.com>
|
|
|
185308 |
Date: Tue, 9 Aug 2022 15:38:03 -0500
|
|
|
185308 |
Subject: [PATCH] Fix: tools: correct minimum execution status shown by
|
|
|
185308 |
crm_resource -O
|
|
|
185308 |
|
|
|
185308 |
regression introduced in 2.1.0 by 5ef28b946
|
|
|
185308 |
|
|
|
185308 |
Fixes T533
|
|
|
185308 |
---
|
|
|
185308 |
lib/pengine/pe_output.c | 4 ++--
|
|
|
185308 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
185308 |
|
|
|
185308 |
diff --git a/lib/pengine/pe_output.c b/lib/pengine/pe_output.c
|
|
|
185308 |
index 5d716fe6cb..dbb49637c9 100644
|
|
|
185308 |
--- a/lib/pengine/pe_output.c
|
|
|
185308 |
+++ b/lib/pengine/pe_output.c
|
|
|
185308 |
@@ -1878,7 +1878,7 @@ node_and_op(pcmk__output_t *out, va_list args) {
|
|
|
185308 |
time_t last_change = 0;
|
|
|
185308 |
|
|
|
185308 |
pcmk__scan_min_int(crm_element_value(xml_op, XML_LRM_ATTR_OPSTATUS),
|
|
|
185308 |
- &status, 0);
|
|
|
185308 |
+ &status, PCMK_EXEC_UNKNOWN);
|
|
|
185308 |
|
|
|
185308 |
rsc = pe_find_resource(data_set->resources, op_rsc);
|
|
|
185308 |
|
|
|
185308 |
@@ -1932,7 +1932,7 @@ node_and_op_xml(pcmk__output_t *out, va_list args) {
|
|
|
185308 |
xmlNode *node = NULL;
|
|
|
185308 |
|
|
|
185308 |
pcmk__scan_min_int(crm_element_value(xml_op, XML_LRM_ATTR_OPSTATUS),
|
|
|
185308 |
- &status, 0);
|
|
|
185308 |
+ &status, PCMK_EXEC_UNKNOWN);
|
|
|
185308 |
node = pcmk__output_create_xml_node(out, "operation",
|
|
|
185308 |
"op", op_key ? op_key : ID(xml_op),
|
|
|
185308 |
"node", crm_element_value(xml_op, XML_ATTR_UNAME),
|
|
|
185308 |
--
|
|
|
185308 |
2.31.1
|
|
|
185308 |
|