inventory: fix internal indentifier
This commit is contained in:
@@ -95,7 +95,7 @@
|
|||||||
grouped = lib.foldlAttrs (
|
grouped = lib.foldlAttrs (
|
||||||
acc: instanceName: instance:
|
acc: instanceName: instance:
|
||||||
let
|
let
|
||||||
inputName = if instance.module.input == null then "self" else instance.module.input;
|
inputName = if instance.module.input == null then "<clan-core>" else instance.module.input;
|
||||||
id = inputName + "-" + instance.module.name;
|
id = inputName + "-" + instance.module.name;
|
||||||
in
|
in
|
||||||
acc
|
acc
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ in
|
|||||||
{
|
{
|
||||||
# Test that the module is mapped into the output
|
# Test that the module is mapped into the output
|
||||||
# We might change the attribute name in the future
|
# We might change the attribute name in the future
|
||||||
expr = res.importedModulesEvaluated ? "self-simple-module";
|
expr = res.importedModulesEvaluated ? "<clan-core>-simple-module";
|
||||||
expected = true;
|
expected = true;
|
||||||
inherit res;
|
inherit res;
|
||||||
};
|
};
|
||||||
@@ -133,8 +133,8 @@ in
|
|||||||
# We might change the attribute name in the future
|
# We might change the attribute name in the future
|
||||||
expr = lib.mapAttrs (_n: v: builtins.length v) res.grouped;
|
expr = lib.mapAttrs (_n: v: builtins.length v) res.grouped;
|
||||||
expected = {
|
expected = {
|
||||||
self-A = 2;
|
"<clan-core>-A" = 2;
|
||||||
self-B = 1;
|
"<clan-core>-B" = 1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user