From c5b4657869738d6173eaff310bc243df0fff289e Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Mon, 21 Feb 2022 13:40:24 +0300 Subject: [PATCH] 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 Reviewed-By: Rob Crittenden --- ipaclient/install/client.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ipaclient/install/client.py b/ipaclient/install/client.py index 3ed997548..bb528d3d3 100644 --- a/ipaclient/install/client.py +++ b/ipaclient/install/client.py @@ -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: