Skip to content

Commit db10973

Browse files
committed
Fix segfault (master regression 2022-09-26)
Fix issue 1070 Fix e5a79f1 Signed-off-by: Akihiro Suda <[email protected]>
1 parent ece0e51 commit db10973

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/limactl/start.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ func loadOrCreateInstance(cmd *cobra.Command, args []string) (*store.Instance, e
150150
if err := identifiers.Validate(st.instName); err != nil {
151151
return nil, fmt.Errorf("argument must be either an instance name, a YAML file path, or a URL, got %q: %w", st.instName, err)
152152
}
153-
if inst, err := store.Inspect(st.instName); err == nil {
153+
inst, err := store.Inspect(st.instName)
154+
if err == nil {
154155
logrus.Infof("Using the existing instance %q", st.instName)
155156
if arg == "" {
156157
logrus.Infof("Hint: To create another instance, run the following command: limactl start --name=NAME template://default")

0 commit comments

Comments
 (0)