SimpleAnsibleInventory dà errore parsando tests/data/inventories/good.ini
Per riprodurre:
from manager.stores import SimpleAnsibleInventory
inventory = SimpleAnsibleInventory("tests/data/inventories/good.ini")
inventory.load()
risultato:
$ python3 test.py
Traceback (most recent call last):
File "test.py", line 3, in <module>
inventory.load()
File "/home/enrico/lavori/truelite/fuss/fuss-manager/manager/stores.py", line 632, in load
self._load_vars()
File "/home/enrico/lavori/truelite/fuss/fuss-manager/manager/stores.py", line 758, in _load_vars
self._cycle_hosts(self._load_host_vars)
File "/home/enrico/lavori/truelite/fuss/fuss-manager/manager/stores.py", line 738, in _cycle_hosts
if self.inventory['all']['hosts']:
TypeError: string indices must be integers