added version_added: "2.0" to new parameters
This commit is contained in:
parent
c659f19e25
commit
47633753db
1 changed files with 4 additions and 1 deletions
|
@ -73,16 +73,19 @@ options:
|
||||||
- Wait until the server reports a status of 'UP' when state=enabled, or status of 'MAINT' when state=disabled
|
- Wait until the server reports a status of 'UP' when state=enabled, or status of 'MAINT' when state=disabled
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
version_added: "2.0"
|
||||||
wait_retries:
|
wait_retries:
|
||||||
description:
|
description:
|
||||||
- number of times to check for status after changing the state
|
- number of times to check for status after changing the state
|
||||||
required: false
|
required: false
|
||||||
default: 20
|
default: 20
|
||||||
|
version_added: "2.0"
|
||||||
wait_interval:
|
wait_interval:
|
||||||
description:
|
description:
|
||||||
- number of seconds to wait between retries
|
- number of seconds to wait between retries
|
||||||
required: false
|
required: false
|
||||||
default: 1
|
default: 1
|
||||||
|
version_added: "2.0"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
@ -181,7 +184,7 @@ class HAProxy(object):
|
||||||
|
|
||||||
def wait_until_status(self, pxname, svname, status):
|
def wait_until_status(self, pxname, svname, status):
|
||||||
"""
|
"""
|
||||||
Wait for a server to become active (status == 'UP'). Try RETRIES times
|
Wait for a service to reach the specified status. Try RETRIES times
|
||||||
with INTERVAL seconds of sleep in between. If the service has not reached
|
with INTERVAL seconds of sleep in between. If the service has not reached
|
||||||
the expected status in that time, the module will fail. If the service was
|
the expected status in that time, the module will fail. If the service was
|
||||||
not found, the module will fail.
|
not found, the module will fail.
|
||||||
|
|
Loading…
Reference in a new issue