From 49d28b9a440ed5f687684a1e4bde7fe08f5d82e8 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 5 Apr 2013 14:54:11 -0400 Subject: [PATCH] This SELinux commit is too strict and we should only fail if trying to read/tweak SELinux attributes else python-selinux can't be installed w/ the yum module when missing. Revert "Added an extra check for target nodes with selinux but without libselinux-python package installed" This reverts commit 550986b6a1a0af30294c16bb3155150de8851d7d. --- lib/ansible/module_common.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ansible/module_common.py b/lib/ansible/module_common.py index 7c1619c93fd..8e221ad9e75 100644 --- a/lib/ansible/module_common.py +++ b/lib/ansible/module_common.py @@ -84,9 +84,6 @@ 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: