mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix pre-commit
This commit is contained in:
parent
412178e48a
commit
0291228dac
1 changed files with 4 additions and 4 deletions
|
@ -182,7 +182,7 @@ def renderer(path=None, string=None, default_renderer="jinja|yaml", **kwargs):
|
|||
default_renderer,
|
||||
__opts__["renderer_blacklist"],
|
||||
__opts__["renderer_whitelist"],
|
||||
**kwargs
|
||||
**kwargs,
|
||||
)
|
||||
return ret.read() if __utils__["stringio.is_readable"](ret) else ret
|
||||
|
||||
|
@ -194,12 +194,12 @@ def _get_serialize_fn(serializer, fn_name):
|
|||
|
||||
if not fns:
|
||||
raise salt.exceptions.CommandExecutionError(
|
||||
"Serializer '{}' not found.".format(serializer)
|
||||
f"Serializer '{serializer}' not found."
|
||||
)
|
||||
|
||||
if not fn:
|
||||
raise salt.exceptions.CommandExecutionError(
|
||||
"Serializer '{}' does not implement {}.".format(serializer, fn_name)
|
||||
f"Serializer '{serializer}' does not implement {fn_name}."
|
||||
)
|
||||
|
||||
return fn
|
||||
|
@ -571,7 +571,7 @@ def findup(startpath, filenames, saltenv="base"):
|
|||
# Verify the cwd is a valid path in the state tree
|
||||
if startpath and not path_exists(startpath, saltenv):
|
||||
raise salt.exceptions.SaltInvocationError(
|
||||
"Starting path not found in the state tree: {}".format(startpath)
|
||||
f"Starting path not found in the state tree: {startpath}"
|
||||
)
|
||||
|
||||
# Ensure that patterns is a string or list of strings
|
||||
|
|
Loading…
Add table
Reference in a new issue