mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
linode inventory plugin: fix parsing of access_token (#318)
Read config before trying to use the config. Original issue: https://github.com/ansible/ansible/issues/66874
This commit is contained in:
@@ -194,11 +194,11 @@ class InventoryModule(BaseInventoryPlugin):
|
||||
"""Dynamically parse Linode the cloud inventory."""
|
||||
super(InventoryModule, self).parse(inventory, loader, path)
|
||||
|
||||
config_data = self._read_config_data(path)
|
||||
self._build_client()
|
||||
|
||||
self._get_instances_inventory()
|
||||
|
||||
config_data = self._read_config_data(path)
|
||||
regions, types = self._get_query_options(config_data)
|
||||
self._filter_by_config(regions, types)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user