Inventory: warning on undefined tags, instead of error.

This commit is contained in:
Johannes Kirschbauer
2025-01-08 11:05:13 +01:00
committed by hsjobeki
parent 037549ba38
commit 85d03f106b
3 changed files with 8 additions and 5 deletions

View File

@@ -28,10 +28,10 @@ let
);
in
if tagMembers == [ ] then
throw ''
lib.warn ''
inventory.services.${serviceName}.${instanceName}: - ${roleName} tags: no machine with tag '${tag}' found.
Available tags: ${builtins.toJSON (lib.unique availableTags)}
''
'' []
else
acc ++ tagMembers
) [ ] members.tags or [ ]);