emit first node event

This commit is contained in:
Chelsea Holland Komlo 2018-03-28 17:26:53 -04:00
parent 7812ac5abf
commit e3319afee1

View file

@ -1065,7 +1065,7 @@ func (c *Client) updateNodeFromDriver(name string, fingerprint, health *structs.
// Only emit an event if the health status has changed, not if we are
// simply updating a node on startup
if health.Healthy != oldVal.Healthy && oldVal.HealthDescription != "" {
if health.Healthy != oldVal.Healthy && health.HealthDescription != "" {
event := &structs.NodeEvent{
Subsystem: "Driver",
Message: health.HealthDescription,