mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #19346 from garethgreenaway/19291_pkg_state_version_latest
Additions to pkg state module
This commit is contained in:
commit
23935b9d04
@ -801,6 +801,9 @@ def installed(
|
||||
if not isinstance(version, string_types) and version is not None:
|
||||
version = str(version)
|
||||
|
||||
if version is not None and version == 'latest':
|
||||
version = __salt__['pkg.latest_version'](name)
|
||||
|
||||
kwargs['allow_updates'] = allow_updates
|
||||
result = _find_install_targets(name, version, pkgs, sources,
|
||||
fromrepo=fromrepo,
|
||||
|
Loading…
Reference in New Issue
Block a user