Merge pull request #54566 from garethgreenaway/2019_2_1_port_53080

[master] Porting #53080 to master
This commit is contained in:
Daniel Wozniak 2019-12-16 17:36:49 -07:00 committed by GitHub
commit 6d837047f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1455,8 +1455,8 @@ def install(name=None, refresh=False, pkgs=None, **kwargs):
elif len(pkg_params) == 1:
# A dict of packages was passed, but it contains only 1 key, so we need
# to add the 'extra_install_flags'
for pkg in pkg_params:
pkg_params[pkg]['extra_install_flags'] = kwargs.get('extra_install_flags')
pkg = next(iter(pkg_params))
pkg_params[pkg]['extra_install_flags'] = kwargs.get('extra_install_flags')
# Get a list of currently installed software for comparison at the end
old = list_pkgs(saltenv=saltenv, refresh=refresh, versions_as_list=True)