Misc fixes for several errors

* aci: Correct usage in fail_json
* Fixes incorrect usage of fail_json
* Raise exception object

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2018-11-02 02:05:56 +05:30 committed by Brian Coca
commit ab86051c0b
7 changed files with 11 additions and 11 deletions

View file

@ -596,7 +596,7 @@ class ModuleManager(object):
def exists(self):
if not self.pool_exist():
F5ModuleError('The specified pool does not exist')
raise F5ModuleError('The specified pool does not exist')
uri = "https://{0}:{1}/mgmt/tm/ltm/pool/{2}/members/{3}".format(
self.client.provider['server'],