mirror of https://github.com/hashicorp/consul
Merge pull request #3845 from 42wim/tagfix
Fix service tags not added to health check. Part twopull/3864/head
commit
533f65b7a6
|
@ -1672,6 +1672,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()
|
||||||
|
|
Loading…
Reference in New Issue