You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[WARNING]: * Failed to parse /repo/ansible/runner/project/inventories/production/_foo/inventory/netbox_inventory.yml with ansible_collections.netbox.netbox.plugins.inventory.nb_inventory
plugin: 'InventoryModule' object has no attribute 'site_group_names'
File "/repo/ansible/.venv/lib/python3.12/site-packages/ansible/inventory/manager.py", line 292, in parse_source
plugin.parse(self._inventory, self._loader, source, cache=cache)
File "/repo/ansible/runner/project/collections/ansible_collections/netbox/netbox/plugins/inventory/nb_inventory.py", line 2179, in parse
self.main()
File "/repo/ansible/runner/project/collections/ansible_collections/netbox/netbox/plugins/inventory/nb_inventory.py", line 2054, in main
self._add_site_group_groups()
File "/repo/ansible/runner/project/collections/ansible_collections/netbox/netbox/plugins/inventory/nb_inventory.py", line 1884, in _add_site_group_groups
self.site_group_names[site_id],
^^^^^^^^^^^^^^^^^^^^^
[WARNING]: * Failed to parse /repo/ansible/runner/project/inventories/production/_foo/inventory/netbox_inventory.yml with yaml plugin: Plugin configuration YAML file, not YAML inventory
File "/repo/ansible/.venv/lib/python3.12/site-packages/ansible/inventory/manager.py", line 292, in parse_source
plugin.parse(self._inventory, self._loader, source, cache=cache)
File "/repo/ansible/.venv/lib/python3.12/site-packages/ansible/plugins/inventory/yaml.py", line 113, in parse
raise AnsibleParserError('Plugin configuration YAML file, not YAML inventory')
[WARNING]: Unable to parse /repo/ansible/runner/project/inventories/production/_foo/inventory/netbox_inventory.yml as an inventory source
The text was updated successfully, but these errors were encountered:
if (
site_group_byinself.group_byor"site_group"inself.group_by<<<<<thisbitor"location"inself.group_byor"region"inself.group_byorsite_group_group_byinself.group_by
):
self._add_site_groups()
Ansible NetBox Collection version
v3.20.0
Ansible version
ansible [core 2.17.3] config file = /repo/ansible/runner/project/ansible.cfg configured module search path = ['/repo/ansible/runner/project/library'] ansible python module location = /repo/ansible/.venv/lib/python3.12/site-packages/ansible ansible collection location = /repo/ansible/runner/project/collections executable location = /repo/ansible/.venv/bin/ansible python version = 3.12.7 (main, Oct 1 2024, 08:52:11) [GCC 9.4.0] (/repo/ansible/.venv/bin/python3.12) jinja version = 3.1.4 libyaml = True
NetBox version
v4.1.4
Python version
3.12
Steps to Reproduce
Our netbox groups have hyphens (
-
) but I have setforce_valid_group_names = always
in theansible.cfg
Group by using
site_group
does not workGroup by using
device_roles
works fine.Expected Behavior
Devices should be grouped by site group.
Observed Behavior
The text was updated successfully, but these errors were encountered: