Inventory: fix eval tests

This commit is contained in:
Johannes Kirschbauer
2024-09-16 22:13:45 +02:00
parent 56b76f9827
commit 7a4028660f
2 changed files with 4 additions and 4 deletions

View File

@@ -189,7 +189,7 @@ let
) [ ] inventory.services; ) [ ] inventory.services;
} }
] ]
) inventory.machines; ) (inventory.machines or { });
in in
{ {
inherit buildInventory; inherit buildInventory;

View File

@@ -88,9 +88,9 @@ in
not_used_machine = builtins.length configs.not_used_machine; not_used_machine = builtins.length configs.not_used_machine;
}; };
expected = { expected = {
client_1_machine = 5; client_1_machine = 6;
client_2_machine = 5; client_2_machine = 6;
not_used_machine = 2; not_used_machine = 3;
}; };
}; };