diff --git a/cmd/minikube/cmd/config/profile_list.go b/cmd/minikube/cmd/config/profile_list.go index bb91ca55f3c1..784231484694 100644 --- a/cmd/minikube/cmd/config/profile_list.go +++ b/cmd/minikube/cmd/config/profile_list.go @@ -112,7 +112,7 @@ var printProfilesJSON = func() { var body = map[string]interface{}{} - if err == nil { + if err == nil || os.IsNotExist(err) { body["valid"] = valid body["invalid"] = invalid jsonString, _ := json.Marshal(body)