summaryrefslogtreecommitdiff
path: root/linuxstatus
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-07 11:52:15 -0600
committerJeff Carr <[email protected]>2024-01-07 11:52:15 -0600
commit8e91fdd993051a32255f5c9bfea8d1359002ca50 (patch)
tree911353e8e7877c3eb497d091ee657a8c8f6a964b /linuxstatus
parentb107cd2b6a3d03721ad235684273eb5d0d1e2c03 (diff)
error button disablesv0.5.3
Signed-off-by: Jeff Carr <[email protected]>
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
}
}