mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-29 18:27:58 +08:00
[REV] optimize node ready column
This commit is contained in:
parent
8a5e0e1549
commit
77a80c1602
@ -171,14 +171,14 @@ func NewCmdNode() cli.Command {
|
||||
serviceTable.AddHeaders("Uid", "IP", "HostName", "NodeRole", "NodeMode", "Alived", "Schedulable", "Ready")
|
||||
var rest []*model.HostNode
|
||||
for _, v := range list {
|
||||
var ready bool = false
|
||||
if v.NodeStatus != nil {
|
||||
ready = true
|
||||
var ready bool=false
|
||||
if isNodeReady(v){
|
||||
ready=true
|
||||
}
|
||||
if v.Role.HasRule("manage") {
|
||||
handleStatus(serviceTable, ready, v)
|
||||
} else {
|
||||
rest = append(rest, v)
|
||||
handleStatus(serviceTable,ready,v)
|
||||
}else{
|
||||
rest=append(rest,v)
|
||||
}
|
||||
}
|
||||
if len(rest) > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user