mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
to resolve 43705 (#44078)
This commit is contained in:
parent
6af6e806ed
commit
6a395d8e24
1 changed files with 5 additions and 1 deletions
|
@ -158,7 +158,11 @@ class WapiBase(object):
|
||||||
|
|
||||||
class WapiLookup(WapiBase):
|
class WapiLookup(WapiBase):
|
||||||
''' Implements WapiBase for lookup plugins '''
|
''' Implements WapiBase for lookup plugins '''
|
||||||
pass
|
def handle_exception(self, method_name, exc):
|
||||||
|
if ('text' in exc.response):
|
||||||
|
raise Exception(exc.response['text'])
|
||||||
|
else:
|
||||||
|
raise Exception(exc)
|
||||||
|
|
||||||
|
|
||||||
class WapiInventory(WapiBase):
|
class WapiInventory(WapiBase):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue