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
parent
ff051f9a33
commit
a05dc6516b
|
@ -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],
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue