Fix default client env when var is set (#2128)
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
@@ -62,7 +62,7 @@ func (t clientEnvTask) getEnv(envvar string, v *compiler.Value, pctx *plancontex
|
||||
return secret.MarshalCUE(), nil
|
||||
}
|
||||
|
||||
if val.IsConcrete() {
|
||||
if !hasDefault && val.IsConcrete() {
|
||||
return nil, fmt.Errorf("%s: unexpected concrete value, please use a type or set a default", envvar)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user