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

Fix mock DictDataLoader _get_file_contents to match real code

This commit is contained in:
James Cammarata 2015-06-05 07:19:14 -04:00
parent 73c956366e
commit 9ac624d2c9

View file

@ -40,7 +40,7 @@ class DictDataLoader(DataLoader):
def _get_file_contents(self, path):
if path in self._file_mapping:
return self._file_mapping[path]
return (self._file_mapping[path], False)
else:
raise AnsibleParserError("file not found: %s" % path)