Skip to content

Commit 1279fa7

Browse files
afbjorklundAkihiroSuda
authored andcommitted
Embed templates edited from the user interface
Signed-off-by: Anders F Björklund <[email protected]> (cherry picked from commit 86b4495) Signed-off-by: Akihiro Suda <[email protected]>
1 parent b44feb4 commit 1279fa7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/limactl/start.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ func chooseNextCreatorState(ctx context.Context, tmpl *limatmpl.Template, yq str
329329
hdr += editutil.GenerateEditorWarningHeader()
330330
var err error
331331
tmpl.Bytes, err = editutil.OpenEditor(tmpl.Bytes, hdr)
332+
tmpl.Config = nil
332333
if err != nil {
333334
return tmpl, err
334335
}
@@ -337,6 +338,10 @@ func chooseNextCreatorState(ctx context.Context, tmpl *limatmpl.Template, yq str
337338
logrus.Info(msg)
338339
return nil, exitSuccessError{Msg: msg}
339340
}
341+
err = tmpl.Embed(ctx, true, true)
342+
if err != nil {
343+
return nil, err
344+
}
340345
return tmpl, nil
341346
case 2: // "Choose another template..."
342347
templates, err := filterHiddenTemplates()

0 commit comments

Comments
 (0)