summaryrefslogtreecommitdiff
path: root/linuxstatus/hostname.go
diff options
context:
space:
mode:
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