fix gRPC serialization for healthcheck start-period
| ... | ... |
@@ -281,7 +281,7 @@ func containerToGRPC(c types.ContainerSpec) (*swarmapi.ContainerSpec, error) {
|
| 281 | 281 |
func healthConfigFromGRPC(h *swarmapi.HealthConfig) *container.HealthConfig {
|
| 282 | 282 |
interval, _ := gogotypes.DurationFromProto(h.Interval) |
| 283 | 283 |
timeout, _ := gogotypes.DurationFromProto(h.Timeout) |
| 284 |
- startPeriod, _ := gogotypes.DurationFromProto(h.Timeout) |
|
| 284 |
+ startPeriod, _ := gogotypes.DurationFromProto(h.StartPeriod) |
|
| 285 | 285 |
return &container.HealthConfig{
|
| 286 | 286 |
Test: h.Test, |
| 287 | 287 |
Interval: interval, |