difftreelog
fix allow generator to be functor
in: trunk
1 file changed
cmds/fleet/src/cmds/secrets/mod.rsdiffbeforeafterboth353 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;