1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix lookup() plugin

lookup() plugin is currently broken because _get_file_contents() now
returns a tuple: (contents, show_data).

This patch fix that issue.
This commit is contained in:
Davide Guerri 2015-06-04 19:46:09 +01:00
parent f3f3fb7c49
commit ee06eebea3

View file

@ -53,7 +53,7 @@ class LookupModule(LookupBase):
for path in (basedir_path, relative_path, playbook_path): for path in (basedir_path, relative_path, playbook_path):
try: try:
contents = self._loader._get_file_contents(path) contents, show_data = self._loader._get_file_contents(path)
ret.append(contents.rstrip()) ret.append(contents.rstrip())
break break
except AnsibleParserError: except AnsibleParserError: