File pacemaker#3409-0001-Fix-tools-crm_resource-should-ignore-resource-meta-a.patch of Package pacemaker.34783
From 69064c5a99a759dd49dd5f456c064245859d6b3f Mon Sep 17 00:00:00 2001
From: Ken Gaillot <kgaillot@redhat.com>
Date: Thu, 14 Mar 2024 18:20:48 -0500
Subject: [PATCH 1/3] Fix: tools: crm_resource should ignore resource
meta-attribute node expressions
The cluster ignores node expressions in rules within resource meta-attribute
blocks, so crm_resource should too when getting a meta-attribute value or
creating meta-attributes for direct agent execution.
---
tools/crm_resource.c | 2 +-
tools/crm_resource_print.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: pacemaker-2.0.4+20200616.2deceaa3a/tools/crm_resource_print.c
===================================================================
--- pacemaker-2.0.4+20200616.2deceaa3a.orig/tools/crm_resource_print.c
+++ pacemaker-2.0.4+20200616.2deceaa3a/tools/crm_resource_print.c
@@ -295,7 +295,7 @@ cli_resource_print_attribute(pe_resource
} else if (safe_str_eq(attr_set_type, XML_TAG_META_SETS)) {
/* No need to redirect to the parent */
- get_meta_attributes(params, rsc, current, data_set);
+ get_meta_attributes(params, rsc, NULL, data_set);
} else {
pe__unpack_dataset_nvpairs(rsc->xml, XML_TAG_UTILIZATION, NULL, params,