Fix: node should not be refreshed when editing node with status=inactive
This commit is contained in:
parent
51b1e5b854
commit
05941616df
1 changed files with 4 additions and 1 deletions
|
@ -24,7 +24,10 @@ func (service *AddNodeService) Add() serializer.Response {
|
|||
}
|
||||
}
|
||||
|
||||
cluster.Default.Add(&service.Node)
|
||||
if service.Node.Status == model.NodeActive {
|
||||
cluster.Default.Add(&service.Node)
|
||||
}
|
||||
|
||||
return serializer.Response{Data: service.Node.ID}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue