From b3686b873e235086e7e62fca25e4a3130bbba532 Mon Sep 17 00:00:00 2001 From: Hannes Ljungberg Date: Thu, 21 Feb 2019 20:09:45 +0100 Subject: [PATCH] Specify choices on update_order --- lib/ansible/modules/cloud/docker/docker_swarm_service.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker_swarm_service.py b/lib/ansible/modules/cloud/docker/docker_swarm_service.py index 8962301de6f..b00039e9079 100644 --- a/lib/ansible/modules/cloud/docker/docker_swarm_service.py +++ b/lib/ansible/modules/cloud/docker/docker_swarm_service.py @@ -456,6 +456,9 @@ options: - Corresponds to the C(--update-order) option of C(docker service create). - Requires API version >= 1.29. type: str + choices: + - "stop-first" + - "start-first" user: description: - Sets the username or UID used for the specified command. @@ -1772,7 +1775,7 @@ def main(): update_failure_action=dict(type='str', choices=['continue', 'pause']), update_monitor=dict(type='raw'), update_max_failure_ratio=dict(type='float'), - update_order=dict(type='str'), + update_order=dict(type='str', choices=['stop-first', 'start-first']), user=dict(type='str'), working_dir=dict(type='str'), )