Merge pull request #50333 from garethgreenaway/50311_pkg_installed_fails_sources_hold

[2018.3] Fix to pkg.installed for sources and hold: True
This commit is contained in:
Mike Place 2018-11-08 11:02:32 -07:00 committed by GitHub
commit d9179fb5b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1720,7 +1720,7 @@ def installed(
try:
action = 'pkg.hold' if kwargs['hold'] else 'pkg.unhold'
hold_ret = __salt__[action](
name=name, pkgs=desired, sources=sources
name=name, pkgs=desired
)
except (CommandExecutionError, SaltInvocationError) as exc:
comment.append(six.text_type(exc))