From ee06eebea3d7e218783385424a6f575e8bb7e5b3 Mon Sep 17 00:00:00 2001 From: Davide Guerri Date: Thu, 4 Jun 2015 19:46:09 +0100 Subject: [PATCH] Fix lookup() plugin lookup() plugin is currently broken because _get_file_contents() now returns a tuple: (contents, show_data). This patch fix that issue. --- lib/ansible/plugins/lookup/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/lookup/file.py b/lib/ansible/plugins/lookup/file.py index ea53c37e03..30247c150c 100644 --- a/lib/ansible/plugins/lookup/file.py +++ b/lib/ansible/plugins/lookup/file.py @@ -53,7 +53,7 @@ class LookupModule(LookupBase): for path in (basedir_path, relative_path, playbook_path): try: - contents = self._loader._get_file_contents(path) + contents, show_data = self._loader._get_file_contents(path) ret.append(contents.rstrip()) break except AnsibleParserError: