mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
Merge pull request #2071 from gravitl/GRA-1277-public-keys
skip legacy nodes when setting node.Action
This commit is contained in:
commit
3119170797
1 changed files with 4 additions and 1 deletions
|
@ -598,10 +598,13 @@ func networkNodesUpdateAction(networkName string, action string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
for _, value := range collections {
|
||||
for k, value := range collections {
|
||||
var node models.Node
|
||||
err := json.Unmarshal([]byte(value), &node)
|
||||
if err != nil {
|
||||
if IsLegacyNode(k) { // ignore legacy nodes
|
||||
continue
|
||||
}
|
||||
fmt.Println("error in node address assignment!")
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue