From 890c2d04e200c627ce5fedbfa96cf233ca50ae14 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Fri, 9 Sep 2016 22:20:56 -0400 Subject: [PATCH] Default restart_retries to None rather than 0. Fixes #4534. --- lib/ansible/modules/cloud/docker/docker_container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker_container.py b/lib/ansible/modules/cloud/docker/docker_container.py index d1cdd952044..f571cd25c9c 100644 --- a/lib/ansible/modules/cloud/docker/docker_container.py +++ b/lib/ansible/modules/cloud/docker/docker_container.py @@ -1927,7 +1927,7 @@ def main(): recreate=dict(type='bool', default=False), restart=dict(type='bool', default=False), restart_policy=dict(type='str', choices=['no', 'on-failure', 'always', 'unless-stopped']), - restart_retries=dict(type='int', default=0), + restart_retries=dict(type='int', default=None), shm_size=dict(type='str'), security_opts=dict(type='list'), state=dict(type='str', choices=['absent', 'present', 'started', 'stopped'], default='started'),