mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
zypper.py: fix version argument being ignored
This commit is contained in:
parent
214f2d6ad3
commit
f3f5dec239
1 changed files with 9 additions and 0 deletions
|
@ -1205,6 +1205,15 @@ def install(name=None,
|
|||
return {}
|
||||
|
||||
version_num = Wildcard(__zypper__)(name, version)
|
||||
|
||||
if version_num:
|
||||
if pkgs is None and sources is None:
|
||||
# Allow "version" to work for single package target
|
||||
pkg_params = {name: version_num}
|
||||
else:
|
||||
log.warning('"version" parameter will be ignored for multiple '
|
||||
'package targets')
|
||||
|
||||
if pkg_type == 'repository':
|
||||
targets = []
|
||||
problems = []
|
||||
|
|
Loading…
Add table
Reference in a new issue