mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
fix return
This commit is contained in:
parent
96caccc43e
commit
c371d87eb3
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ package controller
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
@ -610,7 +611,7 @@ 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
|
||||
return errors.New("attempt to publish to server node")
|
||||
}
|
||||
if nodeUpdate {
|
||||
if err := mq.NodeUpdate(node); err != nil {
|
||||
|
|
Loading…
Reference in a new issue