Skip to content

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants