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

This reverts commit 9a8c6db4.
parent 2cc178ad
......@@ -20,7 +20,6 @@ import (
"context"
"fmt"
"regexp"
"strings"
"github.com/golang/glog"
"github.com/gophercloud/gophercloud"
......@@ -61,7 +60,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment