mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
to resolve 43705 (#44078)
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user