mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Migrate string formatting in 'pass' renderer to a f-string
This commit is contained in:
parent
a37e5c704b
commit
da375bb682
1 changed files with 1 additions and 3 deletions
|
@ -158,9 +158,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:
|
||||
|
|
Loading…
Add table
Reference in a new issue