From 946e093a14a97df72c2ef3e2dd40096c80bb8d99 Mon Sep 17 00:00:00 2001 From: Tim Rupp Date: Sat, 10 Nov 2018 19:46:43 -0800 Subject: [PATCH] Move client variable out to prevent variable declaration errors (#48515) --- lib/ansible/modules/network/f5/bigip_ipsec_policy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/f5/bigip_ipsec_policy.py b/lib/ansible/modules/network/f5/bigip_ipsec_policy.py index 4ad3b2c93d1..b8dce6e541d 100644 --- a/lib/ansible/modules/network/f5/bigip_ipsec_policy.py +++ b/lib/ansible/modules/network/f5/bigip_ipsec_policy.py @@ -686,8 +686,9 @@ def main(): supports_check_mode=spec.supports_check_mode, ) + client = F5RestClient(**module.params) + try: - client = F5RestClient(**module.params) mm = ModuleManager(module=module, client=client) results = mm.exec_module() cleanup_tokens(client)