mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
Moving client variable out in bigiq modules (#48542)
This is being done to ensure that errors are not encountered if the exception case is hit
This commit is contained in:
parent
452cf2b1a3
commit
22c9da538e
11 changed files with 21 additions and 10 deletions
|
@ -2299,8 +2299,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue