Browse Source

Merge pull request #1893 from gravitl/story/GRA-858

fix host ID return for API
dcarns 2 years ago
parent
commit
539dee09a3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/api_node.go

+ 1 - 1
models/api_node.go

@@ -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 = ""