mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 18:53:12 +00:00
Fix fail_json call in _mark_package_install
This commit is contained in:
@@ -237,7 +237,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):
|
||||
|
||||
Reference in New Issue
Block a user