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