[FIX] Fix status color display bug

This commit is contained in:
zhoujunhao 2018-08-16 12:32:13 +08:00
parent 8661fd2e75
commit c3f5609b6a

View File

@ -140,7 +140,7 @@ func handleResult(serviceTable *termtables.Table, v *client.HostNode) {
if v.Type == client.OutOfDisk || v.Type == client.MemoryPressure || v.Type == client.DiskPressure || v.Type == client.InstallNotReady {
formatReady = "\033[0;32;32m false \033[0m"
} else {
formatReady = "\033[0;31;31m false \033[0m"
formatReady = "\033[0;31;31m true \033[0m"
}
} else {
formatReady = "\033[0;32;32m true \033[0m"