Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Fix errors when TRANSFORM_INVALID_GROUP_CHARS is always #464

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bootswithdefer
Copy link

Cluster names can contain invalid characters (according to Ansible standards for group names) and when the Ansible setting TRANSFORM_INVALID_GROUP_CHARS is set to "always" the inventory script will throw exceptions and fail. The add_group method will return the sanitized name, so this will fix the error. It should cause no change in behavior when TRANSFORM_INVALID_GROUP_CHARS is set to the default of "never".

https://docs.ansible.com/ansible/latest/reference_appendices/config.html#transform-invalid-group-chars

@bootswithdefer
Copy link
Author

@bhati-pradeep Would it be possible for you to review this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant