From bb5cfa172ca58cd8adcedcaca92bde54d0645661 Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen Date: Thu, 14 Jul 2022 10:55:19 +0200 Subject: [PATCH] openstack-agents: set domain parameter's default to Default and fix missing parameter name in ocf_exit_reason --- heartbeat/openstack-common.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/heartbeat/openstack-common.sh b/heartbeat/openstack-common.sh index b6eec09c..14d290bd 100644 --- a/heartbeat/openstack-common.sh +++ b/heartbeat/openstack-common.sh @@ -1,6 +1,10 @@ +OCF_RESKEY_user_domain_name_default="Default" +OCF_RESKEY_project_domain_name_default="Default" OCF_RESKEY_openstackcli_default="/usr/bin/openstack" OCF_RESKEY_insecure_default="false" +: ${OCF_RESKEY_user_domain_name=${OCF_RESKEY_user_domain_name_default}} +: ${OCF_RESKEY_project_domain_name=${OCF_RESKEY_project_domain_name_default}} : ${OCF_RESKEY_openstackcli=${OCF_RESKEY_openstackcli_default}} : ${OCF_RESKEY_insecure=${OCF_RESKEY_insecure_default}} @@ -64,7 +68,7 @@ Keystone Project. Keystone User Domain Name. Keystone User Domain Name - + @@ -72,7 +76,7 @@ Keystone User Domain Name. Keystone Project Domain Name. Keystone Project Domain Name - + @@ -133,7 +137,7 @@ get_config() { exit $OCF_ERR_CONFIGURED fi if [ -z "$OCF_RESKEY_project_domain_name" ]; then - ocf_exit_reason " not set" + ocf_exit_reason "project_domain_name not set" exit $OCF_ERR_CONFIGURED fi -- 2.36.1