1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

More useful error message for if not HAVE_SELINUX

This commit is contained in:
Maxim Burgerhout 2012-10-29 16:23:00 +01:00
parent ea8cb0b2e9
commit 82cc382c6a

View file

@ -164,7 +164,7 @@ def main():
)
if not HAVE_SELINUX:
module.fail_json(msg="SELinux not supported on this host.")
module.fail_json(msg="This module requires libselinux-python support")
if not HAVE_SEMANAGE:
module.fail_json(msg="This module requires libsemanage-python support")