Fix: node should not be refreshed when editing node with status=inactive

This commit is contained in:
HFO4 2021-11-22 20:48:16 +08:00
parent 51b1e5b854
commit 05941616df

View file

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