Removing unused name param for wait_for tcp draining classes
Also updates the version_added and other references to the version in which the connection draining functionality was added.
This commit is contained in:
parent
4716f47d57
commit
64a6ab5fff
1 changed files with 2 additions and 4 deletions
|
@ -47,7 +47,7 @@ description:
|
||||||
- In 1.6 and later, this module can
|
- In 1.6 and later, this module can
|
||||||
also be used to wait for a file to be available or absent on the
|
also be used to wait for a file to be available or absent on the
|
||||||
filesystem.
|
filesystem.
|
||||||
- In X and later, this module can also be used to wait for active
|
- In 1.8 and later, this module can also be used to wait for active
|
||||||
connections to be closed before continuing, useful if a node
|
connections to be closed before continuing, useful if a node
|
||||||
is being rotated out of a load balancer pool.
|
is being rotated out of a load balancer pool.
|
||||||
version_added: "0.7"
|
version_added: "0.7"
|
||||||
|
@ -90,7 +90,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Can be used to match a string in either a file or a socket connection. Defaults to a multiline regex.
|
- Can be used to match a string in either a file or a socket connection. Defaults to a multiline regex.
|
||||||
exclude_hosts:
|
exclude_hosts:
|
||||||
version_added: "1.x"
|
version_added: "1.8"
|
||||||
required: false
|
required: false
|
||||||
description:
|
description:
|
||||||
- list of hosts or IPs to ignore when looking for active TCP connections for C(drained) state
|
- list of hosts or IPs to ignore when looking for active TCP connections for C(drained) state
|
||||||
|
@ -161,7 +161,6 @@ class TCPConnectionInfo(object):
|
||||||
|
|
||||||
def __init__(self, module):
|
def __init__(self, module):
|
||||||
self.module = module
|
self.module = module
|
||||||
self.name = module.params['name']
|
|
||||||
(self.family, self.ip) = _convert_host_to_ip(self.module.params['host'])
|
(self.family, self.ip) = _convert_host_to_ip(self.module.params['host'])
|
||||||
self.port = int(self.module.params['port'])
|
self.port = int(self.module.params['port'])
|
||||||
self.exclude_ips = self._get_exclude_ips()
|
self.exclude_ips = self._get_exclude_ips()
|
||||||
|
@ -215,7 +214,6 @@ class LinuxTCPConnectionInfo(TCPConnectionInfo):
|
||||||
|
|
||||||
def __init__(self, module):
|
def __init__(self, module):
|
||||||
self.module = module
|
self.module = module
|
||||||
self.name = module.params['name']
|
|
||||||
(self.family, self.ip) = _convert_host_to_hex(module.params['host'])
|
(self.family, self.ip) = _convert_host_to_hex(module.params['host'])
|
||||||
self.port = "%0.4X" % int(module.params['port'])
|
self.port = "%0.4X" % int(module.params['port'])
|
||||||
self.exclude_ips = self._get_exclude_ips()
|
self.exclude_ips = self._get_exclude_ips()
|
||||||
|
|
Loading…
Reference in a new issue