fix gRPC serialization for healthcheck start-period
Signed-off-by: Dong Chen <dongluo.chen@docker.com>
This commit is contained in:
parent
2c6bcf3ee7
commit
caab178509
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ func containerToGRPC(c types.ContainerSpec) (*swarmapi.ContainerSpec, error) {
|
|||
func healthConfigFromGRPC(h *swarmapi.HealthConfig) *container.HealthConfig {
|
||||
interval, _ := gogotypes.DurationFromProto(h.Interval)
|
||||
timeout, _ := gogotypes.DurationFromProto(h.Timeout)
|
||||
startPeriod, _ := gogotypes.DurationFromProto(h.Timeout)
|
||||
startPeriod, _ := gogotypes.DurationFromProto(h.StartPeriod)
|
||||
return &container.HealthConfig{
|
||||
Test: h.Test,
|
||||
Interval: interval,
|
||||
|
|
Loading…
Reference in a new issue