saltstack/salt — pull request #7865 by UtahDave (2013-10-15 23:19:56+00:00)
Title: Add python_shell flag to cmdmod functions.

The cmdmod functions use shell=True by default. To allow for safer calls
add python_shell=False to the call and pass in the arguments as a
sequence

sudo salt 'dasalt' cmd.run 'ls -lh /'

sudo salt 'dasalt' cmd.run '["ls", "-lh", "/"]' python_shell=False