saltstack/salt — pull request #1748 by johnthedebs (2012-08-01 23:46:21+00:00)
Title: Fix TypeError in cmd.script state when 'onlyif' or 'unless' are defined

I was getting this error (https://gist.github.com/6a3ae764b83470c82cbd) when I added an 'unless' condition to the cmd.script state.

It was happening because cmd_kwargs had many more values than were needed for the call to `_run_check`, so I created a second dict called `run_check_cmd_kwargs` to pass to the check.

Also fixed some comment typos.