added hotfixes

This commit is contained in:
0xdcarns
2022-01-11 10:24:29 -05:00
committed by Matthew R Kasun
parent 7a5bcb5a68
commit 6ad6e2078b
2 changed files with 3 additions and 1 deletions

View File

@@ -395,10 +395,11 @@ func GetNodeByIDorMacAddress(uuid string, macaddress string, network string) (mo
return models.Node{}, err
}
err = CreateNode(&node)
logger.Log(2, "rewriting legacy node data; node now has id,", node.ID)
if err != nil {
return models.Node{}, err
}
logger.Log(2, "rewriting legacy node data; node now has id,", node.ID)
node.PullChanges = "yes"
}
return node, err
}