Fixup a weird merge problem
This commit is contained in:
parent
c41fa6c010
commit
f9d0323c0b
|
@ -1848,11 +1848,6 @@ func (a *Agent) AddCheck(check *structs.HealthCheck, chkType *structs.CheckType,
|
||||||
check.CheckID, checks.MinInterval))
|
check.CheckID, checks.MinInterval))
|
||||||
chkType.Interval = checks.MinInterval
|
chkType.Interval = checks.MinInterval
|
||||||
}
|
}
|
||||||
if chkType.Script != "" {
|
|
||||||
a.logger.Printf("[WARN] agent: check %q has the 'script' field, which has been deprecated "+
|
|
||||||
"and replaced with the 'args' field. See https://www.consul.io/docs/agent/checks.html",
|
|
||||||
check.CheckID)
|
|
||||||
}
|
|
||||||
|
|
||||||
if a.dockerClient == nil {
|
if a.dockerClient == nil {
|
||||||
dc, err := checks.NewDockerClient(os.Getenv("DOCKER_HOST"), checks.BufSize)
|
dc, err := checks.NewDockerClient(os.Getenv("DOCKER_HOST"), checks.BufSize)
|
||||||
|
@ -1890,11 +1885,6 @@ func (a *Agent) AddCheck(check *structs.HealthCheck, chkType *structs.CheckType,
|
||||||
check.CheckID, checks.MinInterval)
|
check.CheckID, checks.MinInterval)
|
||||||
chkType.Interval = checks.MinInterval
|
chkType.Interval = checks.MinInterval
|
||||||
}
|
}
|
||||||
if chkType.Script != "" {
|
|
||||||
a.logger.Printf("[WARN] agent: check %q has the 'script' field, which has been deprecated "+
|
|
||||||
"and replaced with the 'args' field. See https://www.consul.io/docs/agent/checks.html",
|
|
||||||
check.CheckID)
|
|
||||||
}
|
|
||||||
|
|
||||||
monitor := &checks.CheckMonitor{
|
monitor := &checks.CheckMonitor{
|
||||||
Notify: a.State,
|
Notify: a.State,
|
||||||
|
|
Loading…
Reference in New Issue