grace_period -> grace

This commit is contained in:
Michael Schurter 2017-09-26 10:21:35 -07:00
parent 68e679a8f2
commit d0140f07ca
3 changed files with 3 additions and 3 deletions

View file

@ -83,7 +83,7 @@ func (r *RestartPolicy) Merge(rp *RestartPolicy) {
// failing health checks.
type CheckRestart struct {
Limit int `mapstructure:"limit"`
Grace *time.Duration `mapstructure:"grace_period"`
Grace *time.Duration `mapstructure:"grace"`
IgnoreWarnings bool `mapstructure:"ignore_warnings"`
}

View file

@ -1062,7 +1062,7 @@ func parseChecks(service *api.Service, checkObjs *ast.ObjectList) error {
func parseCheckRestart(cro *ast.ObjectItem) (*api.CheckRestart, error) {
valid := []string{
"limit",
"grace_period",
"grace",
"ignore_warnings",
}

View file

@ -98,7 +98,7 @@ job "binstore-storagelocker" {
check_restart {
limit = 3
grace_period = "10s"
grace = "10s"
ignore_warnings = true
}
}