From c740c968903b93695aee84bc7e7a6de0785789d6 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Thu, 2 Feb 2017 22:52:39 +0100 Subject: [PATCH] set log level for cdist config based on env vars Signed-off-by: Steven Armstrong --- cdist/conf/type/__install_config/gencode-local | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cdist/conf/type/__install_config/gencode-local b/cdist/conf/type/__install_config/gencode-local index 30434d1b..a1caea69 100755 --- a/cdist/conf/type/__install_config/gencode-local +++ b/cdist/conf/type/__install_config/gencode-local @@ -22,8 +22,9 @@ chroot="$(cat "$__object/parameter/chroot")" remote_exec="$__type/files/remote/exec" remote_copy="$__type/files/remote/copy" -cdist_args="-v" -[ "$__debug" = "yes" ] && cdist_args="$cdist_args -d" +cdist_args="" +[ "$__verbose" = "yes" ] && cdist_args="-vv" +[ "$__debug" = "yes" ] && cdist_args="-d" cat << DONE cdist $cdist_args \