agent: alias checks have no interval

This commit is contained in:
Mitchell Hashimoto 2018-06-30 07:52:25 -07:00
parent b12d8ae179
commit 99ead8324f
No known key found for this signature in database
GPG key ID: 744E147AA52F5B0A

View file

@ -2029,11 +2029,6 @@ func (a *Agent) AddCheck(check *structs.HealthCheck, chkType *structs.CheckType,
existing.Stop()
delete(a.checkAliases, check.CheckID)
}
if chkType.Interval < checks.MinInterval {
a.logger.Printf("[WARN] agent: check '%s' has interval below minimum of %v",
check.CheckID, checks.MinInterval)
chkType.Interval = checks.MinInterval
}
var rpcReq structs.NodeSpecificRequest
rpcReq.Datacenter = a.config.Datacenter