From 2af38e5564ce8121f1ca68ba0f2cd1ebb626f68e Mon Sep 17 00:00:00 2001 From: twangboy Date: Wed, 3 May 2017 14:20:40 -0600 Subject: [PATCH] Use target instead of version_num --- salt/modules/win_pkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/win_pkg.py b/salt/modules/win_pkg.py index 9f33d78c85..e609331697 100644 --- a/salt/modules/win_pkg.py +++ b/salt/modules/win_pkg.py @@ -1428,7 +1428,7 @@ def remove(name=None, pkgs=None, version=None, **kwargs): ) #Compute msiexec string - use_msiexec, msiexec = _get_msiexec(pkginfo[version_num].get('msiexec', False)) + use_msiexec, msiexec = _get_msiexec(pkginfo[target].get('msiexec', False)) # Uninstall the software # Check Use Scheduler Option