fixup! pylint: Ignore usage of 'unicode' before assignment

This commit is contained in:
Rafael Guterres Jeffman
2024-05-22 11:20:12 -03:00
parent 52241fe233
commit 77c1d206d3
8 changed files with 20 additions and 8 deletions

View File

@@ -988,7 +988,9 @@ def main():
sshpubkey = [str(normalize_sshpubkey(key)) for
key in sshpubkey]
elif isinstance(host, (str, unicode)): # pylint: disable=E0606
elif (
isinstance(host, (str, unicode)) # pylint: disable=W0012,E0606
):
name = host
else:
ansible_module.fail_json(msg="Host '%s' is not valid" %