Merge pull request #7476 from govargo/fix-status-nodename
Fix incorrect node name of `minikube status`pull/7489/head
commit
806c7220a9
|
@ -153,9 +153,10 @@ func exitCode(st *Status) int {
|
|||
func status(api libmachine.API, cc config.ClusterConfig, n config.Node) (*Status, error) {
|
||||
|
||||
controlPlane := n.ControlPlane
|
||||
name := driver.MachineName(cc, n)
|
||||
|
||||
st := &Status{
|
||||
Name: n.Name,
|
||||
Name: name,
|
||||
Host: Nonexistent,
|
||||
APIServer: Nonexistent,
|
||||
Kubelet: Nonexistent,
|
||||
|
@ -163,7 +164,6 @@ func status(api libmachine.API, cc config.ClusterConfig, n config.Node) (*Status
|
|||
Worker: !controlPlane,
|
||||
}
|
||||
|
||||
name := driver.MachineName(cc, n)
|
||||
hs, err := machine.Status(api, name)
|
||||
glog.Infof("%s host status = %q (err=%v)", name, hs, err)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue