aboutsummaryrefslogtreecommitdiffstats
path: root/extraconfig/tasks/pacemaker_common_functions.sh
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-16 09:07:53 +0000
committerGerrit Code Review <review@openstack.org>2017-06-16 09:07:53 +0000
commit3c9aa3543b221a16cbe8a5cfce32e8a080f69e92 (patch)
treecf57b026e1e906cfe815bf9203d2952837ef56d3 /extraconfig/tasks/pacemaker_common_functions.sh
parent3fba97012cb75abecb3cf59104cc6693aeb7438b (diff)
parentabf4444d90b6f01342938ad0684e55678fa3b579 (diff)
Merge "Ignore case for bootstrap node checks"
Diffstat (limited to 'extraconfig/tasks/pacemaker_common_functions.sh')
-rwxr-xr-xextraconfig/tasks/pacemaker_common_functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/extraconfig/tasks/pacemaker_common_functions.sh b/extraconfig/tasks/pacemaker_common_functions.sh
index f17a073a..d1dd5d1d 100755
--- a/extraconfig/tasks/pacemaker_common_functions.sh
+++ b/extraconfig/tasks/pacemaker_common_functions.sh
@@ -11,7 +11,7 @@ function log_debug {
}
function is_bootstrap_node {
- if [ "$(hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid)" = "$(facter hostname)" ]; then
+ if [ "$(hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid | tr '[:upper:]' '[:lower:]')" = "$(facter hostname | tr '[:upper:]' '[:lower:]')" ]; then
log_debug "Node is bootstrap"
echo "true"
fi