docker_swarm: fix ca_force_rotate idempotency (#53039)
* Fix ca_force_rotate idempotency. * Add changelog.
This commit is contained in:
parent
8563c2616b
commit
dec97381bc
2 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue