docker_swarm: fix ca_force_rotate idempotency (#53039)

* Fix ca_force_rotate idempotency.

* Add changelog.

(cherry picked from commit dec97381bc)
pull/53192/head
Felix Fontein 7 years ago committed by Toshio Kuratomi
parent c4144398bb
commit 05f7fbc93a

@ -0,0 +1,2 @@
bugfixes:
- "docker_swarm - fixes idempotency for the ``ca_force_rotate`` option."

@ -295,6 +295,8 @@ class TaskParameters(DockerBaseClass):
ca_config = spec.get('CAConfig') or dict()
if self.node_cert_expiry is None:
self.node_cert_expiry = ca_config.get('NodeCertExpiry')
if self.ca_force_rotate is None:
self.ca_force_rotate = ca_config.get('ForceRotate')
dispatcher = spec.get('Dispatcher') or dict()
if self.dispatcher_heartbeat_period is None:

Loading…
Cancel
Save