From 4851c0517f2fadbd294c9319e9d36947acb61e76 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Thu, 24 Aug 2017 14:43:26 +0200 Subject: [PATCH] inherit log level from cdist install during nested cdist config Signed-off-by: Steven Armstrong --- cdist/conf/type/__install_config/gencode-local | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/cdist/conf/type/__install_config/gencode-local b/cdist/conf/type/__install_config/gencode-local index 6682ce0a..29d9c121 100755 --- a/cdist/conf/type/__install_config/gencode-local +++ b/cdist/conf/type/__install_config/gencode-local @@ -23,8 +23,20 @@ remote_exec="$__type/files/remote/exec" remote_copy="$__type/files/remote/copy" cdist_args="" -[ "$__verbose" = "yes" ] && cdist_args="-vv" -[ "$__debug" = "yes" ] && cdist_args="-d" +case "$__cdist_loglevel" in + 20) + cdist_args="-v" + ;; + 15) + cdist_args="-vv" + ;; + 10) + cdist_args="-vvv" + ;; + 5) + cdist_args="-vvvv" + ;; +esac cat << DONE cdist config \