mirror of
https://github.com/moby/moby.git
synced 2026-07-15 03:51:57 +00:00
The health-check start interval added in API v1.44, and the start interval option is ignored when creating a Swarm service using an older API version. However, due to an oversight, the option is not ignored when older API clients _update_ a Swarm service. Fix this oversight by moving the adjustment code into the adjustForAPIVersion function used by both the createService and updateService handler functions. Signed-off-by: Cory Snider <csnider@mirantis.com>