mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
check for msiexec in correct location
This commit is contained in:
parent
b038b66865
commit
db40c6a241
@ -310,7 +310,7 @@ def refresh_db():
|
||||
return True
|
||||
|
||||
|
||||
def install(name=None, refresh=False, msiexec=False, **kwargs):
|
||||
def install(name=None, refresh=False, **kwargs):
|
||||
'''
|
||||
Install the passed package
|
||||
|
||||
@ -344,7 +344,7 @@ def install(name=None, refresh=False, msiexec=False, **kwargs):
|
||||
cached_pkg = pkginfo[version]['installer']
|
||||
cached_pkg = cached_pkg.replace('/', '\\')
|
||||
cmd = '"' + str(cached_pkg) + '"' + str(pkginfo[version]['install_flags'])
|
||||
if msiexec:
|
||||
if pkginfo[msiexec]:
|
||||
cmd = 'msiexec /i ' + cmd
|
||||
stderr = __salt__['cmd.run_all'](cmd).get('stderr', '')
|
||||
if stderr:
|
||||
|
Loading…
Reference in New Issue
Block a user