mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-29 16:34:25 +08:00
Merge pull request #1893 from gravitl/story/GRA-858
fix host ID return for API
This commit is contained in:
commit
539dee09a3
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