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

pull/1073/head
HFO4 3 years ago
parent 51b1e5b854
commit 05941616df

@ -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…
Cancel
Save