Skip to content

Commit

Permalink
ansible_ipa_server.py: Calm down ansible-test "metaclass-boilerplate"
Browse files Browse the repository at this point in the history
ansible-test sanity test "metaclass-boilerplate" fails now to recognize
the line "__metaclass__ = type" if there is a pylint disable comment
appended to the same line to not fail on using bad class naming.

The pylint disable comment has been moved to an extra preceding line.
  • Loading branch information
t-woerner committed Dec 11, 2024
1 parent 8e6c5e5 commit edf765c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/ipaserver/module_utils/ansible_ipa_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

from __future__ import (absolute_import, division, print_function)

__metaclass__ = type # pylint: disable=invalid-name
# pylint: disable=invalid-name
__metaclass__ = type

__all__ = ["IPAChangeConf", "certmonger", "sysrestore", "root_logger",
"ipa_generate_password", "run", "ScriptError", "services",
Expand Down

0 comments on commit edf765c

Please sign in to comment.