Merge pull request #1931 from mhite/bigip_pool_member_port_0
Allow port 0 as a valid pool member port
This commit is contained in:
commit
1989b8ba57
1 changed files with 3 additions and 4 deletions
|
@ -341,11 +341,11 @@ def main():
|
||||||
|
|
||||||
# sanity check user supplied values
|
# sanity check user supplied values
|
||||||
|
|
||||||
if (host and not port) or (port and not host):
|
if (host and port is None) or (port is not None and not host):
|
||||||
module.fail_json(msg="both host and port must be supplied")
|
module.fail_json(msg="both host and port must be supplied")
|
||||||
|
|
||||||
if 1 > port > 65535:
|
if 0 > port or port > 65535:
|
||||||
module.fail_json(msg="valid ports must be in range 1 - 65535")
|
module.fail_json(msg="valid ports must be in range 0 - 65535")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
api = bigip_api(server, user, password, validate_certs)
|
api = bigip_api(server, user, password, validate_certs)
|
||||||
|
@ -427,4 +427,3 @@ def main():
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import *
|
||||||
from ansible.module_utils.f5 import *
|
from ansible.module_utils.f5 import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue