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:
parent
73c956366e
commit
9ac624d2c9
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class DictDataLoader(DataLoader):
|
||||||
|
|
||||||
def _get_file_contents(self, path):
|
def _get_file_contents(self, path):
|
||||||
if path in self._file_mapping:
|
if path in self._file_mapping:
|
||||||
return self._file_mapping[path]
|
return (self._file_mapping[path], False)
|
||||||
else:
|
else:
|
||||||
raise AnsibleParserError("file not found: %s" % path)
|
raise AnsibleParserError("file not found: %s" % path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue