summaryrefslogtreecommitdiff
path: root/linuxstatus
diff options
context:
space:
mode:
Diffstat (limited to 'linuxstatus')
-rw-r--r--linuxstatus/hostname.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/linuxstatus/hostname.go b/linuxstatus/hostname.go
index 2a83eba..c36541a 100644
--- a/linuxstatus/hostname.go
+++ b/linuxstatus/hostname.go
@@ -33,7 +33,7 @@ func (ls *LinuxStatus) GetHostname() string {
func (ls *LinuxStatus) ValidHostname() bool {
if ! me.Ready() {return false}
- if me.hostnameStatus.Get() == "VALID" {
+ if me.hostnameStatus.Get() == "WORKING" {
return true
}
return false
@@ -104,9 +104,9 @@ func lookupHostname() {
me.hostnameStatus.Set("BROKEN")
}
} else {
- if (me.hostnameStatus.Get() != "VALID") {
+ if (me.hostnameStatus.Get() != "WORKING") {
log.Log(CHANGE, "hostname", hostname, "is valid")
- me.hostnameStatus.Set("VALID")
+ me.hostnameStatus.Set("WORKING")
me.changed = true
}
}