mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #32503 from dongluochen/fix_startperiod
fix gRPC serialization for healthcheck start-period
This commit is contained in:
commit
b93db34363
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 {
|
func healthConfigFromGRPC(h *swarmapi.HealthConfig) *container.HealthConfig {
|
||||||
interval, _ := gogotypes.DurationFromProto(h.Interval)
|
interval, _ := gogotypes.DurationFromProto(h.Interval)
|
||||||
timeout, _ := gogotypes.DurationFromProto(h.Timeout)
|
timeout, _ := gogotypes.DurationFromProto(h.Timeout)
|
||||||
startPeriod, _ := gogotypes.DurationFromProto(h.Timeout)
|
startPeriod, _ := gogotypes.DurationFromProto(h.StartPeriod)
|
||||||
return &container.HealthConfig{
|
return &container.HealthConfig{
|
||||||
Test: h.Test,
|
Test: h.Test,
|
||||||
Interval: interval,
|
Interval: interval,
|
||||||
|
|
Loading…
Add table
Reference in a new issue