Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
pacemaker.34782
pacemaker#3292-0004-Low-scheduler-restore-nvpai...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker#3292-0004-Low-scheduler-restore-nvpair-behavior-without-id-ref.patch of Package pacemaker.34782
From 4d0685e2b789002bdd3090c52e76e45b0c7eb504 Mon Sep 17 00:00:00 2001 From: Ken Gaillot <kgaillot@redhat.com> Date: Thu, 14 Dec 2023 14:16:32 -0600 Subject: [PATCH] Low: scheduler: restore nvpair behavior without id-ref ... per review --- lib/pengine/rules.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/pengine/rules.c b/lib/pengine/rules.c index 88381eee0..89c487218 100644 --- a/lib/pengine/rules.c +++ b/lib/pengine/rules.c @@ -373,17 +373,13 @@ populate_hash(xmlNode * nvpair_list, GHashTable * hash, gboolean overwrite, xmlN if (pcmk__str_eq((const char *)an_attr->name, XML_CIB_TAG_NVPAIR, pcmk__str_none)) { xmlNode *ref_nvpair = expand_idref(an_attr, top); - if (ref_nvpair == NULL) { - continue; // Not possible with schema validation enabled - } - name = crm_element_value(an_attr, XML_NVPAIR_ATTR_NAME); - if (name == NULL) { + if ((name == NULL) && (ref_nvpair != NULL)) { name = crm_element_value(ref_nvpair, XML_NVPAIR_ATTR_NAME); } value = crm_element_value(an_attr, XML_NVPAIR_ATTR_VALUE); - if (value == NULL) { + if ((value == NULL) && (ref_nvpair != NULL)) { value = crm_element_value(ref_nvpair, XML_NVPAIR_ATTR_VALUE); } -- 2.35.3
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