Inventory: warning on undefined tags, instead of error.
This commit is contained in:
committed by
hsjobeki
parent
037549ba38
commit
85d03f106b
@@ -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 [ ]);
|
||||
|
||||
Reference in New Issue
Block a user