mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
Add some missing imports from last night's py3 fixes (#17196)
This commit is contained in:
parent
0b070a04d0
commit
76f9935634
3 changed files with 3 additions and 2 deletions
|
@ -292,7 +292,7 @@ class DataLoader():
|
||||||
|
|
||||||
result = None
|
result = None
|
||||||
if not source:
|
if not source:
|
||||||
display.warning('Invalid request to find a file that matches an empty string or "null" value')
|
display.warning('Invalid request to find a file that matches an empty string or "null" value')
|
||||||
elif source.startswith('~') or source.startswith(os.path.sep):
|
elif source.startswith('~') or source.startswith(os.path.sep):
|
||||||
# path is absolute, no relative needed, check existence and return source
|
# path is absolute, no relative needed, check existence and return source
|
||||||
test_path = unfrackpath(b_source)
|
test_path = unfrackpath(b_source)
|
||||||
|
|
|
@ -30,6 +30,7 @@ except ImportError:
|
||||||
|
|
||||||
from ansible.errors import AnsibleError
|
from ansible.errors import AnsibleError
|
||||||
from ansible.plugins.lookup import LookupBase
|
from ansible.plugins.lookup import LookupBase
|
||||||
|
from ansible.utils.unicode import to_bytes
|
||||||
|
|
||||||
|
|
||||||
def _parse_params(term):
|
def _parse_params(term):
|
||||||
|
|
|
@ -21,7 +21,7 @@ import os
|
||||||
|
|
||||||
from ansible.errors import AnsibleError
|
from ansible.errors import AnsibleError
|
||||||
from ansible.plugins.lookup import LookupBase
|
from ansible.plugins.lookup import LookupBase
|
||||||
from ansible.utils.unicode import to_unicode
|
from ansible.utils.unicode import to_unicode, to_bytes
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from __main__ import display
|
from __main__ import display
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue