mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Get version as an explicit parameter
This commit is contained in:
parent
9e944db706
commit
c2ca141956
1 changed files with 2 additions and 2 deletions
|
@ -597,7 +597,7 @@ def install(name=None,
|
|||
pkgs=None,
|
||||
sources=None,
|
||||
downloadonly=None,
|
||||
**kwargs):
|
||||
version=None, **kwargs):
|
||||
'''
|
||||
Install the passed package(s), add refresh=True to run 'zypper refresh'
|
||||
before package is installed.
|
||||
|
@ -674,7 +674,7 @@ def install(name=None,
|
|||
if pkg_params is None or len(pkg_params) == 0:
|
||||
return {}
|
||||
|
||||
version_num = kwargs.get('version')
|
||||
version_num = version
|
||||
if version_num:
|
||||
if pkgs is None and sources is None:
|
||||
# Allow "version" to work for single package target
|
||||
|
|
Loading…
Add table
Reference in a new issue