Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
pacemaker.34783
pacemaker#3362-0001-Low-libcrmcommon-Always-out...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker#3362-0001-Low-libcrmcommon-Always-output-request-in-XML-output.patch of Package pacemaker.34783
From 13ee605d9e147d1979a8e9d5de79486c1df6dff0 Mon Sep 17 00:00:00 2001 From: Chris Lumens <clumens@redhat.com> Date: Tue, 13 Feb 2024 14:51:43 -0500 Subject: [PATCH] Low: libcrmcommon: Always output request= in XML output. Previously, we were only doing this if there was a command line involved. However, for public API use, there won't be a command line. This is a problem because the XML schema requires a request to be present. So, just add request="libpacemaker" in those cases. --- lib/common/output_xml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: pacemaker-2.0.5+20201202.ba59be712/lib/common/output_xml.c =================================================================== --- pacemaker-2.0.5+20201202.ba59be712.orig/lib/common/output_xml.c +++ pacemaker-2.0.5+20201202.ba59be712/lib/common/output_xml.c @@ -111,10 +111,8 @@ xml_init(pcmk__output_t *out) { } else { priv->root = create_xml_node(NULL, "pacemaker-result"); xmlSetProp(priv->root, (pcmkXmlStr) "api-version", (pcmkXmlStr) PCMK__API_VERSION); - - if (out->request != NULL) { - xmlSetProp(priv->root, (pcmkXmlStr) "request", (pcmkXmlStr) out->request); - } + crm_xml_add(priv->root, "request", + out->request? out->request : "libpacemaker"); } priv->parent_q = g_queue_new();
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