Merge pull request #3845 from 42wim/tagfix

Fix service tags not added to health check. Part two
This commit is contained in:
James Phillips 2018-02-05 16:18:00 -08:00 committed by GitHub
commit 533f65b7a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1672,6 +1672,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()