Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
check only if master node string is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
kimxogus committed May 3, 2019
1 parent 0e8cd11 commit 09d4e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elasticsearch/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ spec:
cleanup () {
while true ; do
local master="$(http "/_cat/master?h=node")"
if [[ $master == "{{ template "uname" . }}"* && $master != "${NODE_NAME}" ]]; then
if [[ $master && $master != "${NODE_NAME}" ]]; then
echo "This node is not master."
break
fi
Expand Down

0 comments on commit 09d4e6b

Please # to comment.