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 authored and Rob Crittenden committed 2022-03-11 13:37:08 -05:00
1 parent f416abe559
commit ac6fe016c6
1 file changed
+6 -2
+6 -2
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: