plancontext cleanup
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -70,7 +70,7 @@ func (c importTask) Run(ctx context.Context, pctx *plancontext.Context, s solver
|
||||
|
||||
fs := pctx.FS.New(result)
|
||||
out := compiler.NewValue()
|
||||
if err := out.FillPath(cue.ParsePath("fs"), fs.Value()); err != nil {
|
||||
if err := out.FillPath(cue.ParsePath("fs"), fs.MarshalCUE()); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
|
@@ -38,7 +38,7 @@ func (c secretEnvTask) Run(ctx context.Context, pctx *plancontext.Context, _ sol
|
||||
}
|
||||
secret := pctx.Secrets.New(env)
|
||||
out := compiler.NewValue()
|
||||
if err := out.FillPath(cue.ParsePath("contents"), secret.Value()); err != nil {
|
||||
if err := out.FillPath(cue.ParsePath("contents"), secret.MarshalCUE()); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
|
@@ -38,7 +38,7 @@ func (c secretFileTask) Run(ctx context.Context, pctx *plancontext.Context, _ so
|
||||
|
||||
secret := pctx.Secrets.New(string(plaintext))
|
||||
out := compiler.NewValue()
|
||||
if err := out.FillPath(cue.ParsePath("contents"), secret.Value()); err != nil {
|
||||
if err := out.FillPath(cue.ParsePath("contents"), secret.MarshalCUE()); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
|
Reference in New Issue
Block a user