Forget about wrapping the error
This commit is contained in:
parent
7610c9b8ce
commit
d295a97588
|
|
@ -151,8 +151,8 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
||||||
"""Get the inventory from the Netbird API"""
|
"""Get the inventory from the Netbird API"""
|
||||||
try:
|
try:
|
||||||
self.peers = self.client.ListPeers()
|
self.peers = self.client.ListPeers()
|
||||||
except Exception as e:
|
except:
|
||||||
raise AnsibleError(f"Could not retrieve the Netbird inventory: {e.message}")
|
raise AnsibleError(f"Could not retrieve the Netbird inventory. Check the API Key and URL.")
|
||||||
|
|
||||||
def _filter_by_config(self):
|
def _filter_by_config(self):
|
||||||
"""Filter peers by user specified configuration."""
|
"""Filter peers by user specified configuration."""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue