|
@@ -109,7 +109,7 @@ func updateHost(w http.ResponseWriter, r *http.Request) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// publish host update through MQ
|
|
// publish host update through MQ
|
|
- if mq.HostUpdate(&models.HostUpdate{
|
|
|
|
|
|
+ if err := mq.HostUpdate(&models.HostUpdate{
|
|
Action: models.UpdateHost,
|
|
Action: models.UpdateHost,
|
|
Host: *newHost,
|
|
Host: *newHost,
|
|
}); err != nil {
|
|
}); err != nil {
|