From: Stephen Gran Date: Sun, 24 Jun 2012 12:10:44 +0000 (+0100) Subject: update hook for storeconfigs X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=09e1d27cb215e73b1e80684b9e4b13e5ab93a29b update hook for storeconfigs Signed-off-by: Stephen Gran --- diff --git a/tools/git-hooks/pre-commit b/tools/git-hooks/pre-commit index 590554c0..243f0629 100755 --- a/tools/git-hooks/pre-commit +++ b/tools/git-hooks/pre-commit @@ -21,7 +21,7 @@ check_puppet_manifest () { git cat-file blob :0:${file} | sed 's/^import .*/#&/' >${pp} trap "rm -f ${pp}" RETURN - local output=$(puppet parser validate ${pp} 2>&1) + local output=$(puppet parser validate --storeconfigs true ${pp} 2>&1) if [ $? -ne 0 ] || [ -n "${output}" ]; then echo '** Syntax check failed:' >&2 echo "${output}" >&2