mirror of
https://github.com/status-im/consul.git
synced 2025-02-02 17:03:31 +00:00
Fix service tags not added to health check. Part two
This commit is contained in:
parent
842ae5a248
commit
ce771f1fb3
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user