Revert "Split out the hostname when default dhcp_domain is used in nova.conf"

This reverts commit 9a8c6db448.
This commit is contained in:
Jordan Liggitt
2018-05-15 22:47:02 -04:00
parent ccc3eb2c31
commit 2f48ad3ff5

View File

@@ -20,7 +20,6 @@ import (
"context"
"fmt"
"regexp"
"strings"
"github.com/golang/glog"
"github.com/gophercloud/gophercloud"
@@ -62,7 +61,7 @@ func (i *Instances) CurrentNodeName(ctx context.Context, hostname string) (types
if err != nil {
return "", err
}
return types.NodeName(strings.Split(md.Hostname, ".")[0]), nil
return types.NodeName(md.Hostname), nil
}
// AddSSHKeyToAllInstances is not implemented for OpenStack