Revert bug in `minikube status`

When the cluster is Paused, `minikube status` currently says that it is `Running`. Reverting a change I made in a previous PR to take the status of the apiserver should fix this.
pull/9383/head
Priya Wadhwa 2020-09-29 16:56:15 -04:00
parent ff051f9a33
commit a05dc6516b
1 changed files with 2 additions and 2 deletions

View File

@ -442,14 +442,14 @@ func readEventLog(name string) ([]cloudevents.Event, time.Time, error) {
// clusterState converts Status structs into a ClusterState struct
func clusterState(sts []*Status) ClusterState {
sc := statusCode(sts[0].Host)
sc := statusCode(sts[0].APIServer)
cs := ClusterState{
BinaryVersion: version.GetVersion(),
BaseState: BaseState{
Name: ClusterFlagValue(),
StatusCode: sc,
StatusName: sts[0].Host,
StatusName: sts[0].APIServer,
StatusDetail: codeDetails[sc],
},