From 8e91fdd993051a32255f5c9bfea8d1359002ca50 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 7 Jan 2024 11:52:15 -0600 Subject: [PATCH] error button disables Signed-off-by: Jeff Carr --- linuxstatus/hostname.go | 6 +++--- 1 file 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 } }