From 32c3477102a4a9e57e4a58339bb4ad82134fae07 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 21 Apr 2026 11:20:42 +0200 Subject: [PATCH] cmds.secrets.lib.DistroContext.list_template_files(): List more Default to Distro's idea of relevant packages if no packages are specified on the command line. Signed-off-by: Jan Lindemann --- src/python/jw/pkg/cmds/secrets/lib/DistroContext.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python/jw/pkg/cmds/secrets/lib/DistroContext.py b/src/python/jw/pkg/cmds/secrets/lib/DistroContext.py index 7001170d..2f0cbb4b 100644 --- a/src/python/jw/pkg/cmds/secrets/lib/DistroContext.py +++ b/src/python/jw/pkg/cmds/secrets/lib/DistroContext.py @@ -34,6 +34,8 @@ class DistroContext(FilesContext): return ret async def list_template_files(self, pkg_names: Iterable[str]) -> list[str]: + if not pkg_names: + pkg_names = [p.name for p in await self.__distro.select()] return await self.match_files(pkg_names, pattern=r'.*\.jw-tmpl$') async def list_secret_paths(self, pkg_names: Iterable[str], ignore_missing: bool=False) -> list[str]: