summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Hite <mhite@hotmail.com>2016-04-11 10:57:55 -0700
committerRené Moser <mail@renemoser.net>2016-04-11 19:57:55 +0200
commitc58f5d2137cf7af59657664273b8845750f34cd0 (patch)
tree1b2f31ef43ba25068a9e7e212a5467a24b416ad6
parent5e15cc887b2cfd4a4fd18d66154ceb2ae7fda128 (diff)
downloadansible-modules-extras-c58f5d2137cf7af59657664273b8845750f34cd0.tar.gz
Fixes issue #1992 -- fixes issue adding and deleting pools (#1994)
-rw-r--r--network/f5/bigip_pool.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/network/f5/bigip_pool.py b/network/f5/bigip_pool.py
index 47ae941c..014545c7 100644
--- a/network/f5/bigip_pool.py
+++ b/network/f5/bigip_pool.py
@@ -396,7 +396,7 @@ def main():
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")
- if 0 > port or port > 65535:
+ if port is not None and (0 > port or port > 65535):
module.fail_json(msg="valid ports must be in range 0 - 65535")
if monitors:
@@ -522,4 +522,3 @@ def main():
from ansible.module_utils.basic import *
from ansible.module_utils.f5 import *
main()
-