mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00: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:
@@ -726,8 +726,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()
|
||||
exit_json(module, results, client)
|
||||
|
||||
Reference in New Issue
Block a user