(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:
parent
fd1ff8444d
commit
02fc5342b2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue