From c20d91b188035d85b142142fc4803b18cc6b457f Mon Sep 17 00:00:00 2001 From: "Mark J. Horninger" Date: Sun, 10 Mar 2024 22:41:04 -0400 Subject: [PATCH] Fixed sanity test issues --- plugins/inventory/netbird.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/inventory/netbird.py b/plugins/inventory/netbird.py index 59ac6be..0534119 100644 --- a/plugins/inventory/netbird.py +++ b/plugins/inventory/netbird.py @@ -93,7 +93,6 @@ from ansible.utils.display import Display # Specific for the NetbirdAPI Class import json -import re try: import requests @@ -152,7 +151,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable): try: self.peers = self.client.ListPeers() 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): """Filter peers by user specified configuration."""