From 0712d2f55139802cb48008ecc2cc116a87c3c15d Mon Sep 17 00:00:00 2001 From: ToBeReplaced Date: Mon, 21 Sep 2015 22:50:52 -0600 Subject: [PATCH] Fix fail_json call in _mark_package_install --- packaging/os/dnf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/os/dnf.py b/packaging/os/dnf.py index bb6a2c9d495..c4522f9105a 100644 --- a/packaging/os/dnf.py +++ b/packaging/os/dnf.py @@ -230,7 +230,7 @@ def _mark_package_install(module, base, pkg_spec): try: base.install(pkg_spec) except exceptions.MarkingError: - module.fail(msg="No package {} available.".format(pkg_spec)) + module.fail_json(msg="No package {} available.".format(pkg_spec)) def ensure(module, base, state, names):