Fix or disable pylint warnings for inconsistent return.

In some places, disabling the warnings rather than fixing it required
less changes, without compromising readability.
This commit is contained in:
Rafael Guterres Jeffman
2021-04-29 18:27:33 -03:00
parent 482bd05b62
commit 59d4d1b146
14 changed files with 40 additions and 42 deletions

View File

@@ -512,10 +512,9 @@ def find_user(module, name, preserved=False):
if certs is not None:
_result["usercertificate"] = [encode_certificate(x)
for x in certs]
return _result
else:
return None
return None
def gen_args(first, last, fullname, displayname, initials, homedir, shell,