Commit 2c881e2b by Michael DeHaan

Merge pull request #2578 from arrfab/selinux-fix-2

Added an extra check for target nodes with selinux but without libselinux-python package installed
parents ee4e2dfb 550986b6
......@@ -84,6 +84,9 @@ try:
import selinux
HAVE_SELINUX=True
except ImportError:
if os.path.exists("/selinux/enforce"):
sys.stderr.write('Error: ansible requires the package libselinux-python on nodes with selinux, none found!')
sys.exit(1)
pass
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment