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