Skip to content

Commit 693b507

Browse files
committed
editflags: update the expression for mount flag
Signed-off-by: ashwat287 <[email protected]>
1 parent 86a7a5a commit 693b507

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/limactl/editflags/editflags.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ func YQExpressions(flags *flag.FlagSet, newInstance bool) ([]string, error) {
232232
if err != nil {
233233
return "", err
234234
}
235-
expr := `.mounts += ` + mountListExpr + ` | .mounts |= unique_by(.location)`
235+
// mount options take precedence over template settings
236+
expr := fmt.Sprintf(".mounts = %s + .mounts", mountListExpr)
236237
mountOnly, err := flags.GetStringSlice("mount-only")
237238
if err != nil {
238239
return "", err

0 commit comments

Comments
 (0)