Refactor(inventory): move prio 'introspection' into inventoryClass to minimize the 'clanInternals' api

This commit is contained in:
Johannes Kirschbauer
2025-04-29 13:06:56 +02:00
parent 5f31edf3a5
commit 0d003f5424
5 changed files with 22 additions and 7 deletions

View File

@@ -201,14 +201,12 @@ in
modules = config.modules;
inherit inventoryFile;
inventoryValuesPrios =
# Temporary workaround
builtins.removeAttrs (clan-core.clanLib.introspection.getPrios { options = inventory.options; })
# tags are freeformType which is not supported yet.
[ "tags" ];
templates = config.templates;
inventory = config.inventory;
# TODO: Remove this in about a month
# It is only here for backwards compatibility for people with older CLI versions
inventoryValuesPrios = inventoryClass.introspection;
meta = config.inventory.meta;
source = "${clan-core}";