From 02fc5342b2bd1a493f1377cae0cf23dcf2dd2125 Mon Sep 17 00:00:00 2001 From: Phil Sphicas Date: Mon, 4 Nov 2019 11:41:17 -0800 Subject: [PATCH] (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 --- charts/haproxy/templates/bin/_anchor.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/haproxy/templates/bin/_anchor.tpl b/charts/haproxy/templates/bin/_anchor.tpl index b1ec4989..bdc820d0 100644 --- a/charts/haproxy/templates/bin/_anchor.tpl +++ b/charts/haproxy/templates/bin/_anchor.tpl @@ -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