We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fecce4 commit 76399d9Copy full SHA for 76399d9
saltboot/hostname.go
@@ -10,7 +10,7 @@ const DEFAULT_DOMAIN = ".example.com"
10
const HOST_FILE_NAME = "/etc/hosts"
11
12
func getIpv4Address() (string, error) {
13
- return ExecCmd("hostname -I | head -1")
+ return ExecCmd("hostname", "-I")
14
}
15
16
func getFQDN() (string, error) {
0 commit comments