diff options
Diffstat (limited to 'lib/ansible/plugins/lookup/__init__.py')
-rw-r--r-- | lib/ansible/plugins/lookup/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/plugins/lookup/__init__.py b/lib/ansible/plugins/lookup/__init__.py index 470f0605..c9779d6d 100644 --- a/lib/ansible/plugins/lookup/__init__.py +++ b/lib/ansible/plugins/lookup/__init__.py @@ -100,7 +100,7 @@ class LookupBase(AnsiblePlugin): must be converted into python's unicode type as the strings will be run through jinja2 which has this requirement. You can use:: - from ansible.module_utils._text import to_text + from ansible.module_utils.common.text.converters import to_text result_string = to_text(result_string) """ pass @@ -117,7 +117,7 @@ class LookupBase(AnsiblePlugin): result = None try: - result = self._loader.path_dwim_relative_stack(paths, subdir, needle) + result = self._loader.path_dwim_relative_stack(paths, subdir, needle, is_role=bool('role_path' in myvars)) except AnsibleFileNotFound: if not ignore_missing: self._display.warning("Unable to find '%s' in expected paths (use -vvvvv to see paths)" % needle) |