pylint: workaround incorrect pylint detection of a local function

pylint 2.9 thinks that __add_principal is a class-level method that is
unused. It is a local function inside one of class methods and is used
directly inside that method.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Alexander Bokovoy 2022-02-07 08:45:52 +02:00
parent c93fa491f6
commit 39a4d78527

View File

@ -993,6 +993,7 @@ class DsInstance(service.Service):
def __setup_s4u2proxy(self):
# pylint: disable=unused-private-member
def __add_principal(last_cn, principal, self):
dn = DN(('cn', last_cn), ('cn', 's4u2proxy'),
('cn', 'etc'), self.suffix)