mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-06 08:19:11 -07:00
Avoid using an object if it does not exists (#19058)
This commit is contained in:
parent
28a12e8b27
commit
9a075b5917
1 changed files with 11 additions and 10 deletions
|
@ -103,6 +103,7 @@ except ImportError:
|
||||||
HAVE_SEOBJECT=False
|
HAVE_SEOBJECT=False
|
||||||
|
|
||||||
### Add missing entries (backward compatible)
|
### Add missing entries (backward compatible)
|
||||||
|
if HAVE_SEOBJECT:
|
||||||
seobject.file_types.update(dict(
|
seobject.file_types.update(dict(
|
||||||
a = seobject.SEMANAGE_FCONTEXT_ALL,
|
a = seobject.SEMANAGE_FCONTEXT_ALL,
|
||||||
b = seobject.SEMANAGE_FCONTEXT_BLOCK,
|
b = seobject.SEMANAGE_FCONTEXT_BLOCK,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue