From b784cb1d2dd3b190e8664c2a40e8d3c55ad4ad03 Mon Sep 17 00:00:00 2001 From: Mihai Dinca Date: Fri, 21 Oct 2016 16:25:04 +0200 Subject: [PATCH 16/17] Fix pkg.latest_version when latest already installed --- salt/states/pkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/pkg.py b/salt/states/pkg.py index 8492de7..9cecc07 100644 --- a/salt/states/pkg.py +++ b/salt/states/pkg.py @@ -1679,7 +1679,7 @@ def latest( targets = {} problems = [] for pkg in desired_pkgs: - if not avail[pkg]: + if not avail.get(pkg): # Package either a) is up-to-date, or b) does not exist if not cur[pkg]: # Package does not exist -- 2.10.1