Skip to content

Commit 72e9730

Browse files
authored
Merge pull request #5955 from cheeseandcereal/fix_profile_list_json
Fix profile list json command output
2 parents 284e33a + f8a2d1d commit 72e9730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/minikube/cmd/config/profile_list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ var printProfilesJSON = func() {
112112

113113
var body = map[string]interface{}{}
114114

115-
if err == nil {
115+
if err == nil || os.IsNotExist(err) {
116116
body["valid"] = valid
117117
body["invalid"] = invalid
118118
jsonString, _ := json.Marshal(body)

0 commit comments

Comments
 (0)