Fix service tags not added to health check. Part two
This commit is contained in:
parent
4713921a4c
commit
5cc76cce09
|
@ -1664,6 +1664,7 @@ func (a *Agent) AddCheck(check *structs.HealthCheck, chkType *structs.CheckType,
|
|||
return fmt.Errorf("ServiceID %q does not exist", check.ServiceID)
|
||||
}
|
||||
check.ServiceName = s.Service
|
||||
check.ServiceTags = s.Tags
|
||||
}
|
||||
|
||||
a.checkLock.Lock()
|
||||
|
|
Loading…
Reference in New Issue