Skip to content
Snippets Groups Projects
Commit 121dbe69 authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

Fix pylint warning `consider-merging-isinstance`.

parent 544474a5
No related branches found
No related tags found
No related merge requests found
......@@ -862,7 +862,7 @@ def main():
ok_to_auth_as_delegate, force, reverse, ip_address,
update_dns, update_password)
elif isinstance(host, str) or isinstance(host, unicode):
elif isinstance(host, (str, unicode)):
name = host
else:
ansible_module.fail_json(msg="Host '%s' is not valid" %
......
......@@ -1029,7 +1029,7 @@ def main():
email = extend_emails(email, default_email_domain)
elif isinstance(user, str) or isinstance(user, unicode):
elif isinstance(user, (str, unicode)):
name = user
else:
ansible_module.fail_json(msg="User '%s' is not valid" %
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment