Merge pull request #1908 from hashicorp/b-empty-node-name

B empty node name
This commit is contained in:
Sean Chittenden 2016-03-31 15:14:19 -07:00
commit 178311a64d

View file

@ -169,8 +169,8 @@ func (c *Command) readConfig() *Config {
}
config.NodeName = hostname
}
hostname = strings.TrimSpace(hostname)
if hostname == "" {
config.NodeName = strings.TrimSpace(config.NodeName)
if config.NodeName == "" {
c.Ui.Error("Node name can not be empty")
return nil
}