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/66874pull/337/head
parent
43c805f7db
commit
4dad1ee6fe
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- linode inventory plugin - fix parsing of access_token (https://github.com/ansible/ansible/issues/66874)
|
|
@ -194,11 +194,11 @@ class InventoryModule(BaseInventoryPlugin):
|
||||||
"""Dynamically parse Linode the cloud inventory."""
|
"""Dynamically parse Linode the cloud inventory."""
|
||||||
super(InventoryModule, self).parse(inventory, loader, path)
|
super(InventoryModule, self).parse(inventory, loader, path)
|
||||||
|
|
||||||
|
config_data = self._read_config_data(path)
|
||||||
self._build_client()
|
self._build_client()
|
||||||
|
|
||||||
self._get_instances_inventory()
|
self._get_instances_inventory()
|
||||||
|
|
||||||
config_data = self._read_config_data(path)
|
|
||||||
regions, types = self._get_query_options(config_data)
|
regions, types = self._get_query_options(config_data)
|
||||||
self._filter_by_config(regions, types)
|
self._filter_by_config(regions, types)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue