From b2dcc9c5873d449946a76bf872deb2717a61f543 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Tue, 23 Jan 2018 11:48:35 -0500 Subject: [PATCH] Better error message when file lookup fails (#30894) * Alert user which debug level will show them useful details --- lib/ansible/plugins/lookup/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/lookup/__init__.py b/lib/ansible/plugins/lookup/__init__.py index 102301d4d98..31038ea03ed 100644 --- a/lib/ansible/plugins/lookup/__init__.py +++ b/lib/ansible/plugins/lookup/__init__.py @@ -123,6 +123,6 @@ class LookupBase(AnsiblePlugin): result = self._loader.path_dwim_relative_stack(paths, subdir, needle) except AnsibleFileNotFound: if not ignore_missing: - self._display.warning("Unable to find '%s' in expected paths." % needle) + self._display.warning("Unable to find '%s' in expected paths (use -vvvvv to see paths)" % needle) return result