forked from ungleich-public/cdist-contrib
__netbox{,_gunicorn}: disabled shellcheck warnings
Shellcheck warned about creating content for a python array. As the string will be printed literally into the config, the warning does not match to the current case.
This commit is contained in:
parent
9d8b3ebe74
commit
facb5a64d3
2 changed files with 4 additions and 2 deletions
|
@ -38,9 +38,10 @@ export DATABASE_PORT
|
|||
# list of hosts
|
||||
ALLOWED_HOSTS=""
|
||||
while read -r hostname; do
|
||||
# shellcheck disable=SC2089
|
||||
ALLOWED_HOSTS="$ALLOWED_HOSTS '$hostname',"
|
||||
done < "$__object/parameter/host"
|
||||
export ALLOWED_HOSTS
|
||||
export ALLOWED_HOSTS # shellcheck disable=SC2090
|
||||
|
||||
if [ -f "$__object/parameter/secret-key" ]; then
|
||||
SECRET_KEY=$(cat "$__object/parameter/secret-key")
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
|
||||
HOST=""
|
||||
while read -r host; do
|
||||
# shellcheck disable=SC2089
|
||||
HOST="$HOST '$host',"
|
||||
done < "$__object/parameter/bind-to"
|
||||
export HOST
|
||||
export HOST # shellcheck disable=SC2090
|
||||
|
||||
# process template
|
||||
mkdir "$__object/files"
|
||||
|
|
Loading…
Reference in a new issue