File pacemaker-stonith-ng-advertise-pcmk_on_action-via-metadata.patch of Package pacemaker.14737
commit d0eb7d1e62fb40199e1a3ef36000267dc36b54a2
Author: Klaus Wenninger <klaus.wenninger@aon.at>
Date: Tue Aug 22 18:30:42 2017 +0200
fix: stonith-ng: advertise pcmk_on_action via metadata
The metadata being used by high-level-tooling to determine which
attributes can be set for fencing-resources this is needed to
be able to replace the on-action by an alternate command.
diff --git a/fencing/main.c b/fencing/main.c
index f58ccc7ff..455e5b6fc 100644
--- a/fencing/main.c
+++ b/fencing/main.c
@@ -1289,7 +1289,7 @@ main(int argc, char **argv)
int argerr = 0;
int option_index = 0;
crm_cluster_t cluster;
- const char *actions[] = { "reboot", "off", "list", "monitor", "status" };
+ const char *actions[] = { "reboot", "off", "on", "list", "monitor", "status" };
crm_log_preinit("stonith-ng", argc, argv);
crm_set_options(NULL, "mode [options]", long_options,