File pacemaker#3409-0001-Fix-tools-crm_resource-should-ignore-resource-meta-a.patch of Package pacemaker.34782

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.5+20201202.ba59be712/tools/crm_resource_print.c
===================================================================
--- pacemaker-2.0.5+20201202.ba59be712.orig/tools/crm_resource_print.c
+++ pacemaker-2.0.5+20201202.ba59be712/tools/crm_resource_print.c
@@ -301,7 +301,7 @@ cli_resource_print_attribute(pe_resource
 
     } else if (pcmk__str_eq(attr_set_type, XML_TAG_META_SETS, pcmk__str_casei)) {
         /* 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,
openSUSE Build Service is sponsored by