Fix VAR_FILES

This commit is contained in:
Philippe Caseiro 2021-03-22 20:34:08 +01:00
parent 0aa2e8e3c3
commit 252064322c
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
WORKDIR="./terraform"
TERRA="terraform"
VAR_FILE="main.tfvars networks.tfvars dns-zones.tfvars"
VAR_FILES=$(ls ${WORKDIR}/*.tfvars)
PACKER_ROOT="./packer"
# FIXME
@ -24,7 +24,7 @@ function trun()
return 1
fi
OPTS=""
for fl in ${VAR_FILE}
for fl in ${VAR_FILES}
do
OPTS="-var-files ${fl} "
done