mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix yes usage for pecl defaults
This commit is contained in:
parent
dbd49b4acb
commit
56a9cfcf24
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue