Merge pull request #24554 from lyft/pecl-module-fix

Fix yes usage for pecl defaults
This commit is contained in:
Nicole Thomas 2015-06-09 17:59:49 -06:00
commit 251c8f9f5f

View file

@ -33,7 +33,7 @@ def _pecl(command, defaults=False):
'''
cmdline = 'pecl {0}'.format(command)
if salt.utils.is_true(defaults):
cmdline = 'yes ' + r"$'\n'" + ' | ' + cmdline
cmdline = 'yes ' "''" + ' | ' + cmdline
ret = __salt__['cmd.run_all'](cmdline, python_shell=True)