[REV] optimize node scheduable judge by hasrule compute,not manage

This commit is contained in:
bay1ts 2017-12-11 10:10:36 +08:00
parent 6d07bdd552
commit 454f1fbd7c

View File

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