Revert changes in for loop because param value is changed.

This commit is contained in:
Darko Poljak 2017-11-22 13:26:37 +01:00
parent 1388487199
commit 33a0e05e3d
6 changed files with 6 additions and 6 deletions

View file

@ -19,7 +19,7 @@
#
set -- "/${__object_id}"
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
source)
source="$(cat "$__object/parameter/source")"

View file

@ -84,7 +84,7 @@ echo "{"
# parameters we define ourself
printf ' "data_dir": "%s"\n' "$data_dir"
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
state|user|group|json-config) continue ;;
ca-file-source|cert-file-source|key-file-source)

View file

@ -50,7 +50,7 @@ fi
echo "{"
printf ' "check": {\n'
printf ' "name": "%s"\n' "$name"
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
state|name) continue ;;
*)

View file

@ -42,7 +42,7 @@ fi
echo "{"
printf ' "service": {\n'
printf ' "name": "%s"\n' "$name"
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
state|name|check-interval) continue ;;
check-script)

View file

@ -75,7 +75,7 @@ require="__directory/etc/consul-template" \
# Generate hcl config file
(
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
auth-password|state|ssl-*|syslog-*|version|vault-token|vault-ssl*) continue ;;
auth-username)

View file

@ -38,7 +38,7 @@ fi
# Generate hcl config file
(
printf 'template {\n'
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
source-file)
source="$(cat "$__object/parameter/$param")"