We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ab2856 commit ab9e715Copy full SHA for ab9e715
internal/configure/hosts/hosts.go
@@ -126,7 +126,10 @@ func (hc *HostConfig) Build() error {
126
hc.config[key] = nil // delete labels section
127
continue
128
}
129
-
+ //if we detect hostname instead of host ip, change it to host ip.
130
+ if key == "hostname" {
131
+ key = "hostip"
132
+ }
133
if itemset.Get(key) == nil {
134
return errno.ERR_UNSUPPORT_HOSTS_CONFIGURE_ITEM.
135
F("hosts[%d].%s = %v", hc.sequence, key, value)
@@ -139,7 +142,6 @@ func (hc *HostConfig) Build() error {
139
142
hc.config[key] = v
140
143
141
144
145
privateKeyFile := hc.GetPrivateKeyFile()
146
if len(hc.GetHost()) == 0 {
147
return errno.ERR_HOST_FIELD_MISSING.
0 commit comments