Merge pull request #7476 from govargo/fix-status-nodename

Fix incorrect node name of `minikube status`
pull/7489/head
Sharif Elgamal 2020-04-07 11:51:26 -07:00 committed by GitHub
commit 806c7220a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 {