Skip to content

Commit c6b931e

Browse files
committed
fixup! translate: translate create deprecated option
1 parent 999abf2 commit c6b931e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

translate/v23tov30/v23tov30.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ func translateFilesystems(fss []old.Filesystem, m map[string]string) (ret []type
351351
wipe := util.BoolP(f.Mount.WipeFilesystem)
352352
options := translateFilesystemOptions(f.Mount.Options)
353353

354-
// If `wipe` is set to `false` but we have a `"create": {...}` section, we try
354+
// If we have a `"create": {...}` section, we try
355355
// to convert it.
356-
if wipe == nil && f.Mount.Create != nil {
356+
if f.Mount.Create != nil {
357357
wipe = util.BoolP(f.Mount.Create.Force)
358358

359359
for _, opt := range f.Mount.Create.Options {

translate/v24tov31/v24tov31.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@ func translateFilesystems(fss []old.Filesystem, m map[string]string) (ret []type
376376
wipe := util.BoolP(f.Mount.WipeFilesystem)
377377
options := translateFilesystemOptions(f.Mount.Options)
378378

379-
// If `wipe` is set to `false` but we have a `"create": {...}` section, we try
379+
// If we have a `"create": {...}` section, we try
380380
// to convert it.
381-
if wipe == nil && f.Mount.Create != nil {
381+
if f.Mount.Create != nil {
382382
wipe = util.BoolP(f.Mount.Create.Force)
383383

384384
for _, opt := range f.Mount.Create.Options {

0 commit comments

Comments
 (0)