mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix for import 'display' in lib/ansible/plugins/lookup/filetree.py
This commit is contained in:
parent
27cce305e6
commit
5365b81d14
1 changed files with 5 additions and 2 deletions
|
@ -32,8 +32,11 @@ except ImportError:
|
|||
from ansible.plugins.lookup import LookupBase
|
||||
from ansible.module_utils._text import to_native
|
||||
|
||||
from __main__ import display
|
||||
|
||||
try:
|
||||
from __main__ import display
|
||||
except ImportError:
|
||||
from ansible.utils.display import Display
|
||||
display = Display()
|
||||
|
||||
# If selinux fails to find a default, return an array of None
|
||||
def selinux_context(path):
|
||||
|
|
Loading…
Reference in a new issue