1
0
Fork 0
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:
Timur Vasyunin 2016-11-10 15:00:27 +03:00 committed by Matt Clay
parent 27cce305e6
commit 5365b81d14

View file

@ -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):