Openstack inventory plugin errors due to group special characters #53703
Labels
affects_2.8
This issue/PR affects Ansible v2.8
bug
This issue/PR relates to a bug.
cloud
has_pr
This issue has an associated PR.
inventory
Inventory category
openstack
support:community
This issue/PR relates to code supported by the Ansible community.
tower_blocker
Issues/pending fixes that are failing Tower integration tests or should otherwise block a release
traceback
This issue/PR includes a traceback.
SUMMARY
If using the openstack inventory plugin with the setting to transform invalid characters set to "always", then it errors for me.
This probably only happens when you have tags or groups or something with periods or dashes in them in your openstack infra.
ISSUE TYPE
COMPONENT NAME
openstack inventory plugin
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
mac, openstack instance running
STEPS TO REPRODUCE
EXPECTED RESULTS
Gives the inventory structure
ACTUAL RESULTS
Parsing error
@bcoca you're probably going to save the result of
add_group
here and then pass what you get to add_childansible/lib/ansible/plugins/inventory/openstack.py
Lines 260 to 263 in a8eb25a
I would say that you could have
add_child
transform the group name, but it was probably your plan to have errors like this happen so that you find all the places to fix.The text was updated successfully, but these errors were encountered: