diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-07-29 21:24:08 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-07-29 21:24:08 +0200 |
commit | a5db150fae4480d34b87ad48844948e5209d36de (patch) | |
tree | ee4311cf193ae69f31ff4f708cf49450562dcda1 | |
parent | 195061fcffda8201ff80150f82ba7ee7fafaf793 (diff) |
Use puppet parser validate instead of --parseonly
since the later has been dropped
-rw-r--r-- | git/hooks/puppethooks/checkers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/hooks/puppethooks/checkers.py b/git/hooks/puppethooks/checkers.py index bc93b46..9f1dd92 100644 --- a/git/hooks/puppethooks/checkers.py +++ b/git/hooks/puppethooks/checkers.py @@ -23,7 +23,7 @@ class CheckFailed(Exception): def puppet_checker(path): """Check syntax of puppet manifests""" - cmd = ['puppet', '--color=false', '--noop', '--vardir=/tmp', '--confdir=/tmp', '--parseonly', path] + cmd = ['puppet', 'parser', 'validate', '--color=false', '--noop', '--vardir=/tmp', '--confdir=/tmp', path] popen = subprocess.Popen(cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE) output = popen.communicate() if popen.returncode: |