Skip to content

Commit

Permalink
(no merge) show nodes ):
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Dec 10, 2019
1 parent 7800b15 commit 340d387
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions go/registry/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -772,11 +772,11 @@ func VerifyNodeUpdate(logger *logging.Logger, currentNode, newNode *node.Node) e
return ErrNodeUpdateNotAllowed
}
if !verifyNodeRuntimeChanges(logger, currentNode.Runtimes, newNode.Runtimes) {
curNodeRuntimes, _ := json.Marshal(currentNode.Runtimes)
newNodeRuntimes, _ := json.Marshal(newNode.Runtimes)
curNode, _ := json.Marshal(currentNode)
newNode, _ := json.Marshal(newNode)
logger.Error("RegisterNode: trying to update node runtimes",
"current_runtimes", curNodeRuntimes,
"new_runtimes", newNodeRuntimes,
"current_node", curNode,
"new_node", newNode,
)
return ErrNodeUpdateNotAllowed
}
Expand Down

0 comments on commit 340d387

Please sign in to comment.