mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
selinux: use compat.selinux
Fixes: #502 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
f41f08e9e3
commit
3351416302
2 changed files with 4 additions and 1 deletions
3
changelogs/fragments/512.yml
Normal file
3
changelogs/fragments/512.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- selinux - use compat.selinux instead of selinux (https://github.com/ansible-collections/ansible.posix/issues/502).
|
||||
|
|
@ -97,7 +97,7 @@ import traceback
|
|||
|
||||
SELINUX_IMP_ERR = None
|
||||
try:
|
||||
import selinux
|
||||
from ansible.module_utils.compat import selinux
|
||||
HAS_SELINUX = True
|
||||
except ImportError:
|
||||
SELINUX_IMP_ERR = traceback.format_exc()
|
||||
|
|
|
|||
Loading…
Reference in a new issue