Default restart_retries to None rather than 0. Fixes #4534.

reviewable/pr18780/r1
Chris Houseknecht 8 years ago
parent 819fe45864
commit cac4e68090
No known key found for this signature in database
GPG Key ID: 78F1698C5705A81B

@ -1927,7 +1927,7 @@ def main():
recreate=dict(type='bool', default=False), recreate=dict(type='bool', default=False),
restart=dict(type='bool', default=False), restart=dict(type='bool', default=False),
restart_policy=dict(type='str', choices=['no', 'on-failure', 'always', 'unless-stopped']), 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'), shm_size=dict(type='str'),
security_opts=dict(type='list'), security_opts=dict(type='list'),
state=dict(type='str', choices=['absent', 'present', 'started', 'stopped'], default='started'), state=dict(type='str', choices=['absent', 'present', 'started', 'stopped'], default='started'),

Loading…
Cancel
Save