Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F fuss-manager
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 50
    • Issues 50
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FUSS
  • fuss-manager
  • Issues
  • #958

Closed
Open
Created Jun 21, 2021 by Enrico Zini@enrico

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
Assignee
Assign to
Time tracking