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:
Rudy Attias 2015-08-04 14:10:23 +03:00
parent 2dca8d959b
commit 5fbc5fcd94

View file

@ -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: