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:
Tim Rupp 2018-11-11 11:10:38 -08:00 committed by GitHub
commit 22c9da538e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 21 additions and 10 deletions

View file

@ -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)