mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
linnode inventory, remove redundant (#5438)
* remove redundant templar is already in base class env var is already consulted in via config resolution * more whites * no need to import templar again * Add changelog fragment. * Try to update tests. Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
a1f75efee2
commit
20b84fc709
3 changed files with 9 additions and 13 deletions
|
@ -18,12 +18,15 @@ mandatory_py_version = pytest.mark.skipif(
|
|||
|
||||
from ansible.errors import AnsibleError, AnsibleParserError
|
||||
from ansible.parsing.dataloader import DataLoader
|
||||
from ansible.template import Templar
|
||||
from ansible_collections.community.general.plugins.inventory.linode import InventoryModule
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def inventory():
|
||||
return InventoryModule()
|
||||
plugin = InventoryModule()
|
||||
plugin.templar = Templar(loader=DataLoader())
|
||||
return plugin
|
||||
|
||||
|
||||
def test_missing_access_token_lookup(inventory):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue