mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
Merge pull request #250 from Akasurde/sanity_fixes
sanity fixes for pylint test SUMMARY Signed-off-by: Abhijeet Kasurde akasurde@redhat.com ISSUE TYPE Docs Pull Request COMPONENT NAME changelogs/fragments/sanity_fixes.yml tests/sanity/ignore-2.12.txt tests/unit/mock/loader.py Reviewed-by: Andrew Klychkov <aaklychkov@mail.ru> Reviewed-by: None <None>
This commit is contained in:
commit
01bccb08a9
3 changed files with 6 additions and 3 deletions
3
changelogs/fragments/sanity_fixes.yml
Normal file
3
changelogs/fragments/sanity_fixes.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
trivial:
|
||||||
|
- sanity fixes for pylint test.
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
plugins/modules/synchronize.py pylint:blacklisted-name
|
plugins/modules/synchronize.py pylint:disallowed-name
|
||||||
plugins/modules/synchronize.py use-argspec-type-path
|
plugins/modules/synchronize.py use-argspec-type-path
|
||||||
plugins/modules/synchronize.py validate-modules:doc-default-does-not-match-spec
|
plugins/modules/synchronize.py validate-modules:doc-default-does-not-match-spec
|
||||||
plugins/modules/synchronize.py validate-modules:nonexistent-parameter-documented
|
plugins/modules/synchronize.py validate-modules:nonexistent-parameter-documented
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,8 @@ class DictDataLoader(DataLoader):
|
||||||
|
|
||||||
# TODO: the real _get_file_contents returns a bytestring, so we actually convert the
|
# TODO: the real _get_file_contents returns a bytestring, so we actually convert the
|
||||||
# unicode/text it's created with to utf-8
|
# unicode/text it's created with to utf-8
|
||||||
def _get_file_contents(self, path):
|
def _get_file_contents(self, file_name):
|
||||||
path = to_text(path)
|
path = to_text(file_name)
|
||||||
if path in self._file_mapping:
|
if path in self._file_mapping:
|
||||||
return (to_bytes(self._file_mapping[path]), False)
|
return (to_bytes(self._file_mapping[path]), False)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue