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:
Stanislav Levin 2022-02-21 13:40:24 +03:00 committed by Rob Crittenden
parent f416abe559
commit ac6fe016c6

View File

@ -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: