mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Add missing msg keyword for fail_json (#34387)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
committed by
ansibot
parent
6a322637c4
commit
daae4d922a
@@ -151,7 +151,7 @@ def rpm_package_list():
|
||||
try:
|
||||
import rpm
|
||||
except ImportError:
|
||||
module.fail_json('Unable to use the rpm python bindings, please ensure they are installed under the python the module runs under')
|
||||
module.fail_json(msg='Unable to use the rpm python bindings, please ensure they are installed under the python the module runs under')
|
||||
|
||||
trans_set = rpm.TransactionSet()
|
||||
installed_packages = {}
|
||||
@@ -174,7 +174,7 @@ def apt_package_list():
|
||||
try:
|
||||
import apt
|
||||
except ImportError:
|
||||
module.fail_json('Unable to use the apt python bindings, please ensure they are installed under the python the module runs under')
|
||||
module.fail_json(msg='Unable to use the apt python bindings, please ensure they are installed under the python the module runs under')
|
||||
|
||||
apt_cache = apt.Cache()
|
||||
installed_packages = {}
|
||||
|
||||
Reference in New Issue
Block a user