mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-03 10:24:24 +08:00
Merge pull request #1885 from gravitl/story/GRA-842-1
add mq removal on host delete
This commit is contained in:
commit
e1929dd039
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,10 @@ func deleteHost(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
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()
|
apiHostData := currHost.ConvertNMHostToAPI()
|
||||||
logger.Log(2, r.Header.Get("user"), "removed host", currHost.Name)
|
logger.Log(2, r.Header.Get("user"), "removed host", currHost.Name)
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
|
|
Loading…
Add table
Reference in a new issue