mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 21:24:16 +08:00
fix host ID return for API
This commit is contained in:
parent
f382fd3bf9
commit
f1f164cf35
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ func (a *ApiNode) ConvertToServerNode(currentNode *Node) *Node {
|
|||
func (nm *Node) ConvertToAPINode() *ApiNode {
|
||||
apiNode := ApiNode{}
|
||||
apiNode.ID = nm.ID.String()
|
||||
apiNode.HostID = nm.ID.String()
|
||||
apiNode.HostID = nm.HostID.String()
|
||||
apiNode.Address = nm.Address.String()
|
||||
if isEmptyAddr(apiNode.Address) {
|
||||
apiNode.Address = ""
|
||||
|
|
Loading…
Add table
Reference in a new issue