File bsc#1171372-0009-Fix-libstonithd-respect-pcmk_host_argument-none-on-v-1.1.patch of Package pacemaker.16959
From a7247dbf7eea57a36435690d54caae6f68ad9097 Mon Sep 17 00:00:00 2001
From: "Gao,Yan" <ygao@suse.com>
Date: Fri, 8 May 2020 01:25:56 +0200
Subject: [PATCH 9/9] Fix: libstonithd: respect `pcmk_host_argument=none` on
`validate`
Although for now by default, `port` is still added in make_args() for
backward compatibility. This will be really respected in the future
possibly since 2.1.0.
---
lib/fencing/st_rhcs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/fencing/st_rhcs.c b/lib/fencing/st_rhcs.c
index 9d4ff1b08..43d3ff4f5 100644
--- a/lib/fencing/st_rhcs.c
+++ b/lib/fencing/st_rhcs.c
@@ -251,6 +251,9 @@ stonith__rhcs_validate(stonith_t *st, int call_options, const char *target,
if (rc == -ETIME || remaining_timeout <= 0 ) {
return -ETIME;
}
+
+ } else if (safe_str_eq(host_arg, "none")) {
+ host_arg = NULL;
}
action = stonith_action_create(agent, "validate-all",
--
2.26.1