Fix the ansible error
This commit is contained in:
parent
b5c798ea0e
commit
431fc6099d
|
|
@ -152,7 +152,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
||||||
try:
|
try:
|
||||||
self.peers = self.client.ListPeers()
|
self.peers = self.client.ListPeers()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise AnsibleError(f"Could not retrieve the Netbird inventory: {e}")
|
raise AnsibleError(e)
|
||||||
|
|
||||||
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