Wrapping just the message?

This commit is contained in:
Mark J. Horninger 2024-03-10 22:26:01 -04:00
parent 6fb8dd8da9
commit 51cd4c0851
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
try:
self.peers = self.client.ListPeers()
except Exception as e:
raise AnsibleError from e
raise AnsibleError(f"Could not retrieve the Netbird inventory: {e.message}")
def _filter_by_config(self):
"""Filter peers by user specified configuration."""