docker_swarm: fix ca_force_rotate idempotency (#53039)

* Fix ca_force_rotate idempotency.

* Add changelog.
pull/52990/head
Felix Fontein 6 years ago committed by John R Barker
parent 8563c2616b
commit dec97381bc

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

@ -297,6 +297,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