mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Gate passing version for Windows
This commit is contained in:
parent
de33a40107
commit
7437fe9230
1 changed files with 8 additions and 3 deletions
|
@ -2883,9 +2883,14 @@ def _uninstall(
|
|||
}
|
||||
|
||||
try:
|
||||
pkg_params = __salt__["pkg_resource.parse_targets"](
|
||||
name, pkgs, normalize=normalize, version=version, **kwargs
|
||||
)[0]
|
||||
if salt.utils.platform.is_windows():
|
||||
pkg_params = __salt__["pkg_resource.parse_targets"](
|
||||
name, pkgs, normalize=normalize, version=version, **kwargs
|
||||
)[0]
|
||||
else:
|
||||
pkg_params = __salt__["pkg_resource.parse_targets"](
|
||||
name, pkgs, normalize=normalize
|
||||
)[0]
|
||||
except MinionError as exc:
|
||||
return {
|
||||
"name": name,
|
||||
|
|
Loading…
Add table
Reference in a new issue