vars: fix regenerating a specific generator

This was broken after re-designing the API -> added a test
This commit is contained in:
DavHau
2025-08-20 14:32:13 +07:00
parent 6996a6340a
commit de0b1b2d70
9 changed files with 88 additions and 30 deletions

View File

@@ -550,7 +550,13 @@ const InstallSummary = () => {
return;
}
// Extract generator names from prompt values
// TODO: This is wrong. We need to extend run_generators to be able to compute
// a sane closure over a list of provided generators.
const generators = Object.keys(store.install.promptValues || {});
const runGenerators = client.fetch("run_generators", {
generators: generators.length > 0 ? generators : undefined,
prompt_values: store.install.promptValues,
machines: [
{