cmds.secrets.lib.util.compile_template_file(): Fix

Fix broken call to FilesContext(ctx).compile_template_file() after trying it out the first time.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-04-25 13:49:17 +02:00
commit f23c0560e5
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -14,4 +14,4 @@ if TYPE_CHECKING:
async def compile_template_file(target_path: str, default_attrs: Attrs|None=None, ctx: FileContext|None=None) -> bool:
if ctx is None:
ctx = Local()
FilesContext().compile_template_file(target_path, default_attrs=default_attrs)
await FilesContext(ctx).compile_template_file(target_path, default_attrs=default_attrs)