mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 17:45:55 +02:00
cmds.secrets.CompileTemplates: Log missing secrets
Log the number of secrets missing to fully compile all templates. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
6df4c86fc5
commit
281e6e2440
1 changed files with 4 additions and 0 deletions
|
|
@ -253,6 +253,7 @@ class Cmd(Base): # export
|
|||
os.unlink(path)
|
||||
|
||||
async def _compile_template_files(self, packages: Iterable[str], default_attrs: Attrs) -> list[str]:
|
||||
missing = 0
|
||||
if default_attrs is None:
|
||||
default_attrs = Attrs()
|
||||
for target in await self._list_compilation_targets(packages):
|
||||
|
|
@ -267,6 +268,9 @@ class Cmd(Base): # export
|
|||
break
|
||||
else:
|
||||
log(WARNING, f'No secret found for target {target}, not compiling')
|
||||
missing += 1
|
||||
if missing > 0:
|
||||
log(WARNING, f'{missing} missing secrets found. You might want to add them and run sudo {app.cmdline} again')
|
||||
|
||||
def __init__(self, parent: CmdDistro, name: str, help: str) -> None:
|
||||
super().__init__(parent, name, help)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue