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