From a0b483746e68fd5b5cd43de7297bf94138c0fcc4 Mon Sep 17 00:00:00 2001 From: Matt Hite Date: Mon, 11 Apr 2016 10:57:55 -0700 Subject: [PATCH] Fixes issue #1992 -- fixes issue adding and deleting pools (#1994) --- lib/ansible/modules/extras/network/f5/bigip_pool.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/network/f5/bigip_pool.py b/lib/ansible/modules/extras/network/f5/bigip_pool.py index e45154660e6..73ea018c278 100644 --- a/lib/ansible/modules/extras/network/f5/bigip_pool.py +++ b/lib/ansible/modules/extras/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() -