Skip to content

Commit d2145b6

Browse files
committed
Regenerate the cloud-config.yaml on reset
Signed-off-by: Anders F Björklund <[email protected]>
1 parent f80c5d7 commit d2145b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/limactl/factory-reset.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"path/filepath"
77
"strings"
88

9+
"github.com/lima-vm/lima/pkg/cidata"
910
"github.com/lima-vm/lima/pkg/instance"
1011
"github.com/lima-vm/lima/pkg/store"
1112
"github.com/lima-vm/lima/pkg/store/filenames"
@@ -63,6 +64,10 @@ func factoryResetAction(_ *cobra.Command, args []string) error {
6364
}
6465
}
6566
}
67+
if err := cidata.GenerateCloudConfig(inst.Dir, instName, inst.Config); err != nil {
68+
logrus.Error(err)
69+
}
70+
6671
logrus.Infof("Instance %q has been factory reset", instName)
6772
return nil
6873
}

0 commit comments

Comments
 (0)