Skip to content

Commit

Permalink
selinux: use compat.selinux
Browse files Browse the repository at this point in the history
Fixes: ansible-collections#502

Signed-off-by: Abhijeet Kasurde <[email protected]>
  • Loading branch information
Akasurde committed Jul 15, 2024
1 parent f41f08e commit 3351416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/512.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- selinux - use compat.selinux instead of selinux (https://github.com/ansible-collections/ansible.posix/issues/502).
2 changes: 1 addition & 1 deletion plugins/modules/selinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@

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()
Expand Down

0 comments on commit 3351416

Please sign in to comment.