File bsc#1171372-0003-Fix-libstonithd-plug-parameter-of-RHCS-style-fence-a.patch of Package pacemaker.21299

From 59868b876b647fcc808281d6aacd4129de5e7fa8 Mon Sep 17 00:00:00 2001
From: "Gao,Yan" <ygao@suse.com>
Date: Thu, 16 Apr 2020 15:08:27 +0200
Subject: [PATCH 3/4] Fix: libstonithd: `plug` parameter of RHCS-style
 fence-agents is shown as non-required in the metadata

With this commit, the parameter `plug` of RHCS-style fence-agents is
fudged to be shown as `required="0"` in the metadata output by
`stonith_admin --metadata` or `crm_resource --show-metadata`. So that
users know they don't have to configure it. Pacemaker handles and passes
the parameter to the agent when executing it.
---
 lib/fencing/st_client.c | 1 +
 1 file changed, 1 insertion(+)

Index: pacemaker-1.1.18+20180430.b12c320f5/lib/fencing/st_client.c
===================================================================
--- pacemaker-1.1.18+20180430.b12c320f5.orig/lib/fencing/st_client.c
+++ pacemaker-1.1.18+20180430.b12c320f5/lib/fencing/st_client.c
@@ -1221,6 +1221,7 @@ stonith_api_device_metadata(stonith_t *
 
         // Fudge metadata so parameters are not required in config (pacemaker adds them)
         stonith_rhcs_parameter_not_required(xml, "action");
+        stonith_rhcs_parameter_not_required(xml, "plug");
         stonith_rhcs_parameter_not_required(xml, "port");
         free(buffer);
         buffer = dump_xml_formatted_with_text(xml);
openSUSE Build Service is sponsored by