trust: handle stray pylint warning

We only get to this code path when running in the server context. At
that point _bindings_installed will be defined. Pylint cannot track this
and always fails with this check.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Thomas Woerner <twoerner@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
This commit is contained in:
Alexander Bokovoy 2024-04-26 20:17:08 +03:00 committed by Antonio Torres
parent 08f1e6f2fd
commit b6131b5737
No known key found for this signature in database
GPG Key ID: 359FAF777296F653

View File

@ -241,6 +241,7 @@ def verify_samba_component_presence(ldap, api):
)
# We're ok in this case, bail out
# pylint: disable-next=used-before-assignment
if adtrust_present and _bindings_installed:
return