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