|
...
|
...
|
@@ -146,12 +146,11 @@ func (args NodeArgs) BuildSerializeableNodeConfig() (*configapi.NodeConfig, erro
|
|
146
|
146
|
|
|
147
|
147
|
// defaultHostname returns the default hostname for this system.
|
|
148
|
148
|
func defaultHostname() (string, error) {
|
|
149
|
|
-
|
|
150
|
149
|
// Note: We use exec here instead of os.Hostname() because we
|
|
151
|
150
|
// want the FQDN, and this is the easiest way to get it.
|
|
152
|
151
|
fqdn, err := exec.Command("hostname", "-f").Output()
|
|
153
|
152
|
if err != nil {
|
|
154
|
153
|
return "", fmt.Errorf("Couldn't determine hostname: %v", err)
|
|
155
|
154
|
}
|
|
156
|
|
- return strings.TrimSpace(string(fqdn)), nil
|
|
|
155
|
+ return strings.ToLower(strings.TrimSpace(string(fqdn))), nil
|
|
157
|
156
|
}
|