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
commitb8991ccf586159044c6a17b87654f10860fd22cb (patch)
tree4543581b5d1c82b8eeb81752e3c63e78321fd547 /linuxstatus/hostname.go
parent73811178b515e35b5f13515a2c2130b8a300a870 (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