mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix pkg.install
I jacked this up previously convert cmd to a list use cmd.extend
This commit is contained in:
parent
b4c689dff5
commit
e5daff495a
1 changed files with 3 additions and 2 deletions
|
@ -1212,7 +1212,7 @@ def install(name=None, refresh=False, pkgs=None, **kwargs):
|
|||
use_msiexec, msiexec = _get_msiexec(pkginfo[version_num].get('msiexec', False))
|
||||
|
||||
# Build cmd and arguments
|
||||
# cmd and arguments must be seperated for use with the task scheduler
|
||||
# cmd and arguments must be separated for use with the task scheduler
|
||||
if use_msiexec:
|
||||
cmd = msiexec
|
||||
arguments = ['/i', cached_pkg]
|
||||
|
@ -1275,7 +1275,8 @@ def install(name=None, refresh=False, pkgs=None, **kwargs):
|
|||
else:
|
||||
|
||||
# Combine cmd and arguments
|
||||
cmd = [cmd].extend(arguments)
|
||||
cmd = [cmd]
|
||||
cmd.extend(arguments)
|
||||
|
||||
# Launch the command
|
||||
result = __salt__['cmd.run_all'](cmd,
|
||||
|
|
Loading…
Add table
Reference in a new issue