Code Review
/
apex-tripleo-heat-templates.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Ignore case for bootstrap node checks
[apex-tripleo-heat-templates.git]
/
extraconfig
/
tasks
/
pacemaker_common_functions.sh
diff --git
a/extraconfig/tasks/pacemaker_common_functions.sh
b/extraconfig/tasks/pacemaker_common_functions.sh
index
f17a073
..
d1dd5d1
100755
(executable)
--- 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 {
}
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
log_debug "Node is bootstrap"
echo "true"
fi