mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-11 15:44:52 +08:00
misplaced variable
This commit is contained in:
parent
50016ed219
commit
6b6ce28b13
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ func getNewOrLegacyNode(data string) (models.Node, error) {
|
|||
if err = json.Unmarshal([]byte(data), &reqNode); err != nil {
|
||||
oldID := strings.Split(data, "###") // handle legacy client IDs
|
||||
if len(oldID) == 2 {
|
||||
if node, err = logic.GetNodeByIDorMacAddress(reqNode.ID, reqNode.MacAddress, reqNode.Network); err != nil {
|
||||
if node, err = logic.GetNodeByIDorMacAddress(reqNode.ID, oldID[0], oldID[1]); err != nil {
|
||||
return models.Node{}, err
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue