mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-13 13:02:00 +00:00
fixup! pylint: Ignore usage of 'unicode' before assignment
This commit is contained in:
@@ -1382,7 +1382,11 @@ def main():
|
||||
|
||||
email = extend_emails(email, default_email_domain)
|
||||
|
||||
elif isinstance(user, (str, unicode)): # pylint: disable=E0606
|
||||
elif (
|
||||
isinstance(
|
||||
user, (str, unicode) # pylint: disable=W0012,E0606
|
||||
)
|
||||
):
|
||||
name = user
|
||||
else:
|
||||
ansible_module.fail_json(msg="User '%s' is not valid" %
|
||||
|
||||
Reference in New Issue
Block a user