(haproxy) Fix anchor.sh template

Fix syntax error in anchor.sh template.

/tmp/bin/anchor.sh: line 34: [: missing `]'
/tmp/bin/anchor.sh: line 54: [: missing `]'

Change-Id: I431fea6e9e805099de605b34b50a7cf5fae73be2
This commit is contained in:
Phil Sphicas 2019-11-04 11:41:17 -08:00
parent fd1ff8444d
commit 02fc5342b2
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ install_config() {
get endpoints {{ $service }} \
-o 'jsonpath={.subsets[0].addresses[*].ip}')
if [ $? -ne 0]; then
if [ $? -ne 0 ]; then
echo "Unable to retrieve service IPs for {{ $service }}, will retry configuration render."
return 1
else
@ -74,7 +74,7 @@ install_config() {
get endpoints {{ $service }} \
-o 'jsonpath={.subsets[0].ports[0].port}')
if [ $? -ne 0]; then
if [ $? -ne 0 ]; then
echo "Unable to retrieve service port for {{ $service }}, will retry configuration render."
return 1
else