summaryrefslogtreecommitdiff
path: root/linuxstatus/hostname.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 14:57:51 -0600
committerJeff Carr <[email protected]>2024-01-06 14:57:51 -0600
commit5dee2af78434191a27987acfb02902a11f81067c (patch)
tree43e9877f72f3a575c68c3e6648ab4928ecf511cb /linuxstatus/hostname.go
parentba3d5a3cb24429692a1d799e73a9d53cc798212e (diff)
old window is nearly deprecated
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/hostname.go')
-rw-r--r--linuxstatus/hostname.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/linuxstatus/hostname.go b/linuxstatus/hostname.go
index 08c7971..78682dd 100644
--- a/linuxstatus/hostname.go
+++ b/linuxstatus/hostname.go
@@ -50,7 +50,7 @@ func (ls *LinuxStatus) GetHostShort() string {
}
func (ls *LinuxStatus) setHostShort() {
- if ! me.Ready() {return ""}
+ if ! me.Ready() {return}
hshort := run("hostname -s")
if (me.hostshort.Get() != hshort) {
log.Log(CHANGE, "hostname -s has changed from", me.hostshort.Get(), "to", hshort)
@@ -71,7 +71,7 @@ func lookupHostname() {
log.Error(errors.New("full hostname should be: " + s))
me.setDomainName()
-
+ me.setHostShort()
/*
var test string