From 1992c396e8d9c234139f7a70a06253e7c673474a Mon Sep 17 00:00:00 2001 From: "Mark J. Horninger" Date: Tue, 20 Feb 2024 21:15:19 -0500 Subject: [PATCH] Fixed sanity tests --- plugins/inventory/netbird.py | 1 - tests/unit/plugins/inventory/test_netbird.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inventory/netbird.py b/plugins/inventory/netbird.py index 937aad2..df0ed05 100644 --- a/plugins/inventory/netbird.py +++ b/plugins/inventory/netbird.py @@ -193,7 +193,6 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable): self._get_peer_inventory() self._add_hostvars_for_peers() - if update_cache: self._cache[cache_key] = self._cacheable_inventory() diff --git a/tests/unit/plugins/inventory/test_netbird.py b/tests/unit/plugins/inventory/test_netbird.py index 8f0f48f..7b305ad 100644 --- a/tests/unit/plugins/inventory/test_netbird.py +++ b/tests/unit/plugins/inventory/test_netbird.py @@ -21,6 +21,7 @@ import json display = Display() + @pytest.fixture(scope="module") def inventory(): plugin = InventoryModule()