File pacemaker-fencing-ignore-empty-action.patch of Package pacemaker.14737
commit 7b89ff8b65fcdcad55676578361080eb23edb3e4
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Thu Apr 6 16:56:52 2017 -0500
Low: fencing: ignore empty 'action' parameter in fence devices
This makes the fix in 9c0c3d6 more comprehensive.
diff --git a/fencing/commands.c b/fencing/commands.c
index b4e6eb502..deec050f5 100644
--- a/fencing/commands.c
+++ b/fencing/commands.c
@@ -829,7 +829,10 @@ xml2device_params(const char *name, xmlNode *dev)
crm_warn("%s has '%s' parameter, which should never be specified in configuration",
name, STONITH_ATTR_ACTION_OP);
- if (strcmp(value, "reboot") == 0) {
+ if (*value == '\0') {
+ crm_warn("Ignoring empty '%s' parameter", STONITH_ATTR_ACTION_OP);
+
+ } else if (strcmp(value, "reboot") == 0) {
crm_warn("Ignoring %s='reboot' (see stonith-action cluster property instead)",
STONITH_ATTR_ACTION_OP);