Use correct machine name for status check

pull/7176/head
Thomas Stromberg 2020-03-23 14:25:47 -07:00
parent 2e2a28be4e
commit 29f5007f46
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ func Running(name string) ClusterController {
exit.WithError("Unable to find control plane", err)
}
hs, err := machine.Status(api, cp.Name)
machineName := driver.MachineName(*cc, cp)
hs, err := machine.Status(api, machineName)
if err != nil {
exit.WithError("Unable to get machine status", err)
}