From 9ac624d2c90be1c18d2aa27b78c373e66aa16661 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 5 Jun 2015 07:19:14 -0400 Subject: [PATCH] Fix mock DictDataLoader _get_file_contents to match real code --- test/units/mock/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/mock/loader.py b/test/units/mock/loader.py index 078ca3f0e6c..8b6bbbbaf9c 100644 --- a/test/units/mock/loader.py +++ b/test/units/mock/loader.py @@ -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)