Merge pull request #636 from ggermis/devel

specify int parameter types for wait_interval and wait_retries
reviewable/pr18780/r1
Greg DeKoenigsberg 10 years ago
commit 8a81e94c63

@ -78,13 +78,13 @@ options:
description:
- number of times to check for status after changing the state
required: false
default: 20
default: 25
version_added: "2.0"
wait_interval:
description:
- number of seconds to wait between retries
required: false
default: 1
default: 5
version_added: "2.0"
'''
@ -129,8 +129,8 @@ import time
DEFAULT_SOCKET_LOCATION="/var/run/haproxy.sock"
RECV_SIZE = 1024
ACTION_CHOICES = ['enabled', 'disabled']
WAIT_RETRIES=20
WAIT_INTERVAL=1
WAIT_RETRIES=25
WAIT_INTERVAL=5
######################################################################
class TimeoutException(Exception):
@ -302,9 +302,9 @@ def main():
weight=dict(required=False, default=None),
socket = dict(required=False, default=DEFAULT_SOCKET_LOCATION),
shutdown_sessions=dict(required=False, default=False),
wait=dict(required=False, default=False),
wait_retries=dict(required=False, default=WAIT_RETRIES),
wait_interval=dict(required=False, default=WAIT_INTERVAL),
wait=dict(required=False, default=False, type='bool'),
wait_retries=dict(required=False, default=WAIT_RETRIES, type='int'),
wait_interval=dict(required=False, default=WAIT_INTERVAL, type='int'),
),
)

Loading…
Cancel
Save