1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

docker_swarm: fix ca_force_rotate idempotency (#53039)

* Fix ca_force_rotate idempotency.

* Add changelog.
This commit is contained in:
Felix Fontein 2019-02-27 10:11:45 +01:00 committed by John R Barker
parent 8563c2616b
commit dec97381bc
2 changed files with 4 additions and 0 deletions

View file

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

View file

@ -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: