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()