mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
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:
parent
638834dc4e
commit
ab86051c0b
7 changed files with 11 additions and 11 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue