Skip to content

Commit

Permalink
fix: fqdn not read
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Mar 15, 2024
1 parent 1a6e27d commit 1ad9c7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.8.14

- fix: host fqdn is not properly read

## 1.8.13

- add extruntime.getHostname to provide hostname and fqdn of host
Expand Down
2 changes: 1 addition & 1 deletion extruntime/extruntime.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func GetHostname() (hostname, fqdn string, err error) {
fqdn = "unknown"

hostname, err = os.Hostname()
if host, err2 := sysinfo.Host(); err2 != nil {
if host, err2 := sysinfo.Host(); err2 == nil {
fqdn, err = host.FQDNWithContext(context.Background())
}
return
Expand Down

0 comments on commit 1ad9c7a

Please sign in to comment.