Skip to content

Commit 26061cb

Browse files
authored
Merge pull request #1071 from AkihiroSuda/fix-1070
Fix segfault (master regression 2022-09-26)
2 parents ece0e51 + db10973 commit 26061cb

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)