Skip to content

Commit b074bd9

Browse files
committed
Status: Remove local variable for cluster status result
As part of 22addb7 , we missed to remove the local variable which return only the vmstatus but not the preset info or state. without this PR ``` $ ./crc status -ojson { "success": true, "crcStatus": "Stopped", "cacheUsage": 228490767105, "cacheDir": "/home/prkumar/.crc/cache", "preset": "" } 13:41 $ curl -X GET --unix-socket ~/.crc/crc-http.sock http:/c/api/status | jq . { "CrcStatus": "Stopped", "OpenshiftStatus": "", "DiskUse": 0, "DiskSize": 0, "RAMUse": 0, "RAMSize": 0, "Preset": "" } ```
1 parent 72634a6 commit b074bd9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/crc/machine/status.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ func (client *client) Status() (*types.ClusterStatusResult, error) {
5151
}
5252

5353
if vmStatus != state.Running {
54-
clusterStatusResult := &types.ClusterStatusResult{
55-
CrcStatus: vmStatus,
56-
}
5754
return clusterStatusResult, nil
5855
}
5956

0 commit comments

Comments
 (0)