mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
* Fix new devel sanity errors. (#3194) (cherry picked from commit1fec1d0c81
) * Add two more. * Fix PR #. Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit1a3c221995
) Co-authored-by: patchback[bot] <45432694+patchback[bot]@users.noreply.github.com>
This commit is contained in:
parent
d85908da6e
commit
bc02dc4c44
17 changed files with 45 additions and 30 deletions
|
@ -32,8 +32,8 @@ class DictDataLoader(DataLoader):
|
|||
|
||||
# TODO: the real _get_file_contents returns a bytestring, so we actually convert the
|
||||
# unicode/text it's created with to utf-8
|
||||
def _get_file_contents(self, path):
|
||||
path = to_text(path)
|
||||
def _get_file_contents(self, file_name):
|
||||
path = to_text(file_name)
|
||||
if path in self._file_mapping:
|
||||
return (to_bytes(self._file_mapping[path]), False)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue