mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix mock DictDataLoader _get_file_contents to match real code
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user