aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git/hooks/puppethooks/checkers.py2
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: