git.delta.rocks / jrsonnet / refs/commits / 1db45d48efdc

difftreelog

fix allow generator to be functor

Lach2025-03-23parent: #16240eb.patch.diff
in: trunk

1 file changed

modifiedcmds/fleet/src/cmds/secrets/mod.rsdiffbeforeafterboth
353 if gen_ty == "null" {353 if gen_ty == "null" {
354 bail!("secret has no generator defined, can't automatically generate it.");354 bail!("secret has no generator defined, can't automatically generate it.");
355 }355 }
356 if gen_ty != "lambda" {356 if gen_ty == "set" {
357 if !generator.has_field("__functor").await? {
358 bail!("generator should be functor, got {gen_ty}");
359 }
360 } else if gen_ty != "lambda" {
357 bail!("generator should be lambda, got {gen_ty}");361 bail!("generator should be functor, got {gen_ty}");
358 }362 }
359 }363 }
360 let nixpkgs = &config.nixpkgs;364 let nixpkgs = &config.nixpkgs;