Migrate string formatting in 'pass' renderer to a f-string

This commit is contained in:
Daniel Mach 2023-05-18 09:26:21 +02:00 committed by Megan Wilhite
parent f012ab6313
commit 098dae15cb

View file

@ -159,9 +159,7 @@ def _fetch_secret(pass_path):
pass_error = pass_error.decode("utf-8")
except (AttributeError, ValueError):
pass
msg = "Could not fetch secret '{}' from the password store: {}".format(
pass_path, pass_error
)
msg = f"Could not fetch secret '{pass_path}' from the password store: {pass_error}"
if pass_strict_fetch:
raise SaltRenderError(msg)
else: