improved handling of p []cue.Selector in for loop
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
parent
3ce41fedf1
commit
f3a75f8d74
@ -69,7 +69,9 @@ func (c *decodeSecretTask) Run(ctx context.Context, pctx *plancontext.Context, _
|
|||||||
output.FillPath(path, secret.MarshalCUE())
|
output.FillPath(path, secret.MarshalCUE())
|
||||||
case map[string]interface{}:
|
case map[string]interface{}:
|
||||||
for k, v := range entry {
|
for k, v := range entry {
|
||||||
convert(append(p, cue.ParsePath(k).Selectors()...), v)
|
np := append([]cue.Selector{}, p...)
|
||||||
|
np = append(np, cue.ParsePath(k).Selectors()...)
|
||||||
|
convert(np, v)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user