Skip to content

Commit 7b89ff8

Browse files
committed
Low: fencing: ignore empty 'action' parameter in fence devices
This makes the fix in 9c0c3d6 more comprehensive.
1 parent b005b4f commit 7b89ff8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fencing/commands.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,10 @@ xml2device_params(const char *name, xmlNode *dev)
829829
crm_warn("%s has '%s' parameter, which should never be specified in configuration",
830830
name, STONITH_ATTR_ACTION_OP);
831831

832-
if (strcmp(value, "reboot") == 0) {
832+
if (*value == '\0') {
833+
crm_warn("Ignoring empty '%s' parameter", STONITH_ATTR_ACTION_OP);
834+
835+
} else if (strcmp(value, "reboot") == 0) {
833836
crm_warn("Ignoring %s='reboot' (see stonith-action cluster property instead)",
834837
STONITH_ATTR_ACTION_OP);
835838

0 commit comments

Comments
 (0)