Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.6:Update
pacemaker
pacemaker#3409-0005-Fix-tools-honor-rules-when-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker#3409-0005-Fix-tools-honor-rules-when-getting-utilization-attri.patch of Package pacemaker
From ccd09841c87dda32e83d65a661f9184809db824e Mon Sep 17 00:00:00 2001 From: Ken Gaillot <kgaillot@redhat.com> Date: Thu, 14 Mar 2024 17:50:25 -0500 Subject: [PATCH 5/7] Fix: tools: honor rules when getting utilization attributes with crm_resource --- tools/crm_resource.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) Index: pacemaker-2.1.7+20231219.0f7f88312/tools/crm_resource.c =================================================================== --- pacemaker-2.1.7+20231219.0f7f88312.orig/tools/crm_resource.c +++ pacemaker-2.1.7+20231219.0f7f88312/tools/crm_resource.c @@ -1959,9 +1959,14 @@ main(int argc, char **argv) free_params = false; } else { + pe_rule_eval_data_t rule_data = { + .now = scheduler->now, + }; + params = pcmk__strkey_table(free, free); - pe__unpack_dataset_nvpairs(rsc->xml, XML_TAG_UTILIZATION, NULL, params, - NULL, FALSE, scheduler); + pe__unpack_dataset_nvpairs(rsc->xml, XML_TAG_UTILIZATION, + &rule_data, params, NULL, FALSE, + scheduler); value = g_hash_table_lookup(params, options.prop_name); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor