Skip to content

Commit

Permalink
Regenerate the cloud-config.yaml on reset
Browse files Browse the repository at this point in the history
Signed-off-by: Anders F Björklund <[email protected]>
  • Loading branch information
afbjorklund committed Oct 9, 2024
1 parent f80c5d7 commit d2145b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/limactl/factory-reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"path/filepath"
"strings"

"github.com/lima-vm/lima/pkg/cidata"
"github.com/lima-vm/lima/pkg/instance"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/pkg/store/filenames"
Expand Down Expand Up @@ -63,6 +64,10 @@ func factoryResetAction(_ *cobra.Command, args []string) error {
}
}
}
if err := cidata.GenerateCloudConfig(inst.Dir, instName, inst.Config); err != nil {
logrus.Error(err)
}

logrus.Infof("Instance %q has been factory reset", instName)
return nil
}
Expand Down

0 comments on commit d2145b6

Please sign in to comment.