mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
prevent publish to server node
This commit is contained in:
parent
02b7025b28
commit
96caccc43e
1 changed files with 4 additions and 0 deletions
|
@ -608,6 +608,10 @@ func deleteNode(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
func runUpdates(node *models.Node, nodeUpdate bool) error {
|
||||
//don't publish to server node
|
||||
if node.IsServer == "yes" {
|
||||
return
|
||||
}
|
||||
if nodeUpdate {
|
||||
if err := mq.NodeUpdate(node); err != nil {
|
||||
logger.Log(1, "error publishing node update", err.Error())
|
||||
|
|
Loading…
Reference in a new issue