Skip to content

Commit 76399d9

Browse files
committed
hostname -I fix
1 parent 7fecce4 commit 76399d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

saltboot/hostname.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const DEFAULT_DOMAIN = ".example.com"
1010
const HOST_FILE_NAME = "/etc/hosts"
1111

1212
func getIpv4Address() (string, error) {
13-
return ExecCmd("hostname -I | head -1")
13+
return ExecCmd("hostname", "-I")
1414
}
1515

1616
func getFQDN() (string, error) {

0 commit comments

Comments
 (0)