mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50: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
|
@ -448,8 +448,9 @@ def main():
|
|||
required_if=spec.required_if
|
||||
)
|
||||
|
||||
client = F5RestClient(**module.params)
|
||||
|
||||
try:
|
||||
client = F5RestClient(**module.params)
|
||||
mm = ModuleManager(module=module, client=client)
|
||||
results = mm.exec_module()
|
||||
exit_json(module, results, client)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue