mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
read scaleway option after the options have been set (#41259)
This commit is contained in:
parent
fb7fdc53ec
commit
8047d97ffc
1 changed files with 2 additions and 1 deletions
|
@ -82,7 +82,7 @@ class InventoryModule(BaseInventoryPlugin):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(InventoryModule, self).__init__()
|
super(InventoryModule, self).__init__()
|
||||||
|
|
||||||
self.token = self.get_option("oauth_token")
|
self.token = None
|
||||||
self.config_data = None
|
self.config_data = None
|
||||||
|
|
||||||
def verify_file(self, path):
|
def verify_file(self, path):
|
||||||
|
@ -146,6 +146,7 @@ class InventoryModule(BaseInventoryPlugin):
|
||||||
def parse(self, inventory, loader, path, cache=True):
|
def parse(self, inventory, loader, path, cache=True):
|
||||||
super(InventoryModule, self).parse(inventory, loader, path)
|
super(InventoryModule, self).parse(inventory, loader, path)
|
||||||
self.config_data = self._read_config_data(path=path)
|
self.config_data = self._read_config_data(path=path)
|
||||||
|
self.token = self.get_option("oauth_token")
|
||||||
|
|
||||||
for zone in self._get_zones():
|
for zone in self._get_zones():
|
||||||
self.do_zone_inventory(zone=zone)
|
self.do_zone_inventory(zone=zone)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue