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