Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an extra check for target nodes with selinux but without libselinux-python package installed #2578

Merged
merged 1 commit into from
Apr 5, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/ansible/module_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
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:
Expand Down