Fix service tags not added to health check. Part two

This commit is contained in:
Wim 2018-01-29 20:32:44 +01:00
parent 4713921a4c
commit 5cc76cce09
1 changed files with 1 additions and 0 deletions

View File

@ -1664,6 +1664,7 @@ func (a *Agent) AddCheck(check *structs.HealthCheck, chkType *structs.CheckType,
return fmt.Errorf("ServiceID %q does not exist", check.ServiceID) return fmt.Errorf("ServiceID %q does not exist", check.ServiceID)
} }
check.ServiceName = s.Service check.ServiceName = s.Service
check.ServiceTags = s.Tags
} }
a.checkLock.Lock() a.checkLock.Lock()