瀏覽代碼

feat(script): Add the 'debug' option on 'run_policy.sh'

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 2 年之前
父節點
當前提交
d7757faa9d
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      scripts/run_policy.sh

+ 4 - 2
scripts/run_policy.sh

@@ -5,8 +5,10 @@
 ./scripts/export_policy.sh
 pushd policy-export > /dev/null
 if [ "$1" = "dry" ]; then
-	DRY="--why-run"
+	OPT="--why-run"
+elif [ "$1" = "debug" ]; then
+	OPT="--log_level debug"
 fi
-bundle exec chef-client --chef-license 'accept' -z ${DRY}
+bundle exec chef-client --chef-license 'accept' -z ${OPT}
 popd > /dev/null
 ./scripts/end_run.sh