Fixed sanity test issues
This commit is contained in:
parent
8a190acfe4
commit
c20d91b188
|
|
@ -93,7 +93,6 @@ from ansible.utils.display import Display
|
||||||
|
|
||||||
# Specific for the NetbirdAPI Class
|
# Specific for the NetbirdAPI Class
|
||||||
import json
|
import json
|
||||||
import re
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import requests
|
import requests
|
||||||
|
|
@ -152,7 +151,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
||||||
try:
|
try:
|
||||||
self.peers = self.client.ListPeers()
|
self.peers = self.client.ListPeers()
|
||||||
except Exception:
|
except Exception:
|
||||||
raise AnsibleError(f"Could not retrieve the Netbird inventory. Check the API Key and URL.")
|
raise AnsibleError("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