mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 15:26:04 +08:00
Merge branch 'netclient_refactor_latest' of https://github.com/gravitl/netmaker into netclient_refactor_peer_updates
This commit is contained in:
commit
de6361e7e5
|
@ -130,6 +130,10 @@ func deleteHost(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
if err = mq.DeleteMqClient(currHost.ID.String()); err != nil {
|
||||
logger.Log(0, "error removing DynSec credentials for host:", currHost.Name, err.Error())
|
||||
}
|
||||
|
||||
apiHostData := currHost.ConvertNMHostToAPI()
|
||||
logger.Log(2, r.Header.Get("user"), "removed host", currHost.Name)
|
||||
w.WriteHeader(http.StatusOK)
|
||||
|
|
|
@ -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…
Reference in a new issue