mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-29 18:27:58 +08:00
[REV] optimize node scheduable judge by hasrule compute,not manage
This commit is contained in:
parent
6d07bdd552
commit
454f1fbd7c
@ -103,11 +103,10 @@ func NewCmdNode() cli.Command {
|
||||
ready=true
|
||||
}
|
||||
|
||||
if v.Role.HasRule("manage") {
|
||||
serviceTable.AddRow(v.ID, v.InternalIP,v.HostName, v.Role.String(),v.Alived,"N/A",ready)
|
||||
|
||||
}else{
|
||||
if v.Role.HasRule("compute") {
|
||||
rest=append(rest,v)
|
||||
}else{
|
||||
serviceTable.AddRow(v.ID, v.InternalIP,v.HostName, v.Role.String(),v.Alived,"N/A",ready)
|
||||
}
|
||||
}
|
||||
if len(rest)>0 {
|
||||
|
Loading…
Reference in New Issue
Block a user