mirror of https://github.com/status-im/consul.git
Fixup a weird merge problem
This commit is contained in:
parent
0df7cd22aa
commit
40e6d9c720
|
@ -1848,11 +1848,6 @@ func (a *Agent) AddCheck(check *structs.HealthCheck, chkType *structs.CheckType,
|
|||
check.CheckID, 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 {
|
||||
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)
|
||||
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{
|
||||
Notify: a.State,
|
||||
|
|
Loading…
Reference in New Issue