diff --git a/pkg/infradriver/ssh_infradriver.go b/pkg/infradriver/ssh_infradriver.go index 10ad699789b..bcb5f2120e6 100644 --- a/pkg/infradriver/ssh_infradriver.go +++ b/pkg/infradriver/ssh_infradriver.go @@ -306,7 +306,7 @@ func (d *SSHInfraDriver) GetClusterLaunchApps() []string { } func (d *SSHInfraDriver) GetHostName(hostIP net.IP) (string, error) { - hostName, err := d.CmdToString(hostIP, nil, "hostname", "") + hostName, err := d.CmdToString(hostIP, nil, "uname -n", "") if err != nil { return "", err }