Fixes unit tests and token cleanup (#48005)

The unit tests in 2.8 were broken. this fixes them and adds a token
cleanup to the bigip_tunnel module
This commit is contained in:
Tim Rupp
2018-11-02 12:14:30 -07:00
committed by GitHub
parent 2a69dfb22f
commit b4af058c55
2 changed files with 15 additions and 9 deletions

View File

@@ -603,8 +603,10 @@ def main():
client = F5RestClient(**module.params)
mm = ModuleManager(module=module, client=client)
results = mm.exec_module()
cleanup_tokens(client)
exit_json(module, results, client)
except F5ModuleError as ex:
cleanup_tokens(client)
fail_json(module, ex, client)