Merge pull request #19346 from garethgreenaway/19291_pkg_state_version_latest

Additions to pkg state module
This commit is contained in:
Thomas S Hatch 2015-01-05 13:27:26 -07:00
commit 23935b9d04

View File

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