Skip to content

Commit

Permalink
Merge pull request #1 from claussen/master
Browse files Browse the repository at this point in the history
use puppet's --debug option if ${LOGLEVEL} is set to DEBUG
  • Loading branch information
ahonor committed May 22, 2014
2 parents 10e88de + dc32c73 commit e0cb5d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions puppet-apply-step/contents/puppet_apply
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ else PUPPET_CMD="puppet apply"
fi

if [[ "${LOGLEVEL}" == DEBUG ]]
then PUPPET_CMD="$PUPPET_CMD --verbose"
then PUPPET_CMD="$PUPPET_CMD --debug"
fi

printf >&2 "Executing : $PUPPET_CMD $@ $MANIFEST\n"

$PUPPET_CMD "$@" $MANIFEST

exit $?
# Done.
# Done.

0 comments on commit e0cb5d6

Please sign in to comment.