error button disables

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-07 11:52:15 -06:00
parent b107cd2b6a
commit 8e91fdd993
1 changed files with 3 additions and 3 deletions

View File

@ -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
}
}