From 6b33c588d066791c8c5ce797c7285fbedc149dda Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Thu, 3 Jan 2019 12:33:59 +0100 Subject: [PATCH] docker_swarm_service: Fix typo for option type (#50483) * Fix typo for option type in docker_swarm_service. * Add changelog. --- changelogs/fragments/50483-docker_swarm_service-option-typo.yml | 2 ++ lib/ansible/modules/cloud/docker/docker_swarm_service.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/50483-docker_swarm_service-option-typo.yml diff --git a/changelogs/fragments/50483-docker_swarm_service-option-typo.yml b/changelogs/fragments/50483-docker_swarm_service-option-typo.yml new file mode 100644 index 0000000000..e230d96423 --- /dev/null +++ b/changelogs/fragments/50483-docker_swarm_service-option-typo.yml @@ -0,0 +1,2 @@ +bugfixes: +- "docker_swarm_service - fixing wrong option type for ``update_order`` which prevented using that option." diff --git a/lib/ansible/modules/cloud/docker/docker_swarm_service.py b/lib/ansible/modules/cloud/docker/docker_swarm_service.py index a780fcf61c..dede723c22 100644 --- a/lib/ansible/modules/cloud/docker/docker_swarm_service.py +++ b/lib/ansible/modules/cloud/docker/docker_swarm_service.py @@ -1164,7 +1164,7 @@ def main(): update_failure_action=dict(default='continue', choices=['continue', 'pause']), update_monitor=dict(default=5000000000, type='int'), update_max_failure_ratio=dict(default=0, type='float'), - update_order=dict(default=None, type='string'), + update_order=dict(default=None, type='str'), user=dict(default='root')) required_if = [ ('state', 'present', ['image'])