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]: