mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix msiexec package remove
added support for http/https/ftp to match the install function without it the command executed was including the full url instead of cached file which is breaking package removal when installing from http/https/ftp
This commit is contained in:
parent
2dca8d959b
commit
5fbc5fcd94
1 changed files with 4 additions and 1 deletions
|
@ -568,7 +568,10 @@ def remove(name=None, pkgs=None, version=None, extra_uninstall_flags=None, **kwa
|
|||
uninstaller = pkginfo[version].get('installer')
|
||||
if not uninstaller:
|
||||
return 'Error: No installer or uninstaller configured for package {0}'.format(name)
|
||||
if uninstaller.startswith('salt:'):
|
||||
if uninstaller.startswith('salt:') \
|
||||
or uninstaller.startswith('http:') \
|
||||
or uninstaller.startswith('https:') \
|
||||
or uninstaller.startswith('ftp:'):
|
||||
cached_pkg = \
|
||||
__salt__['cp.is_cached'](uninstaller)
|
||||
if not cached_pkg:
|
||||
|
|
Loading…
Add table
Reference in a new issue