mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-22 23:23:30 -06:00
pylint: Fix format-string-without-interpolation
Found by new Pylint: > ipaclient/install/client.py:1926: [W1310(format-string-without-interpolation), get_ca_certs] Using formatting for a string that does not have any interpolated variables) Fixes: https://pagure.io/freeipa/issue/9117 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
f416abe559
commit
ac6fe016c6
@ -1922,8 +1922,12 @@ def get_ca_certs(fstore, options, server, basedn, realm):
|
||||
reason=u"Unable to load existing CA cert '%s': %s" %
|
||||
(paths.IPA_CA_CRT, e))
|
||||
else:
|
||||
raise errors.FileError(reason=u"Existing ca cert '%s' is " +
|
||||
"not a plain file" % (paths.IPA_CA_CRT))
|
||||
raise errors.FileError(
|
||||
reason=(
|
||||
f"Existing ca cert '{paths.IPA_CA_CRT}' is not a plain "
|
||||
"file"
|
||||
),
|
||||
)
|
||||
|
||||
if otp_auth:
|
||||
if existing_ca_certs:
|
||||
|
Loading…
Reference in New Issue
Block a user