From 86c8980c431581343e092e06fc639c382ffb9423 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Jan 22 2021 12:12:31 +0000 Subject: Fix: tools: Save the optarg parameter for --list-ocf-alternatives. We need this so it can be added to the XML output of crm_resource. --- diff --git a/tools/crm_resource.c b/tools/crm_resource.c index 975d1f0..dc2b784 100644 --- a/tools/crm_resource.c +++ b/tools/crm_resource.c @@ -720,9 +720,7 @@ list_alternatives_cb(const gchar *option_name, const gchar *optarg, gpointer data, GError **error) { SET_COMMAND(cmd_list_alternatives); - options.require_cib = FALSE; - options.require_dataset = FALSE; - options.require_resource = FALSE; + get_agent_spec(optarg); return TRUE; }