ServiceNowITOM / ansible-sn-inventory

Ansible Dynamic Inventory for ServiceNow
Apache License 2.0
79 stars 45 forks source link

Try to use groups with now.ini #6

Closed metabsd closed 6 years ago

metabsd commented 6 years ago

I try to use that config.

[config]

# Comma seperated string providing additional table columns to use as groups. Groups can overlap with fields.

groups = 'used_for'

# Comma seperated string providing additional table columns to add as host vars to each inventory host.

#fields = 'company, os, os_version'

I got that error

./now.py 
Traceback (most recent call last):
  File "./now.py", line 274, in <module>
    main(sys.argv)
  File "./now.py", line 269, in main
    inventory.generate()
  File "./now.py", line 172, in generate
    set(base_fields + base_groups + self.fields + self.groups))
TypeError: can only concatenate list (not "unicode") to list
amittell commented 6 years ago

Resolve in d352b270ae9a9aa53e0a0c62d36da5e10419de96

amittell commented 6 years ago

Please note, don’t use quotes around groups or fields. Update the example config to show the correct syntax.