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

Bugfix/keystone become #18

Merged
merged 2 commits into from
Sep 15, 2021
Merged

Conversation

msherman64
Copy link

fix 1 is trivial, ensuring become: true is set so metadata files can be created

fix 2 is tricky: when creating a capture group to get the entire string, it is important to specify the line start and end. Specifically, use ^(.*)$ not (.*)
If this is not done, the capture group may return an empty string as an extra result, depending on platform and python version.
This is documented at https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#searching-strings-with-regular-expressions

Finally, I would recommend formatting chains of map, select, list, onto multiple lines as shown for readability, and ease of diffing.

@diurnalist diurnalist merged commit e40643b into chameleoncloud/train Sep 15, 2021
@diurnalist diurnalist deleted the bugfix/keystone-become branch September 15, 2021 15:33
diurnalist pushed a commit that referenced this pull request Oct 28, 2021
* ensure certificate can be created

* refactor mapping to be more readable, fix regex

ensure regex capture group includes line beginning or ending to handle
different python interpereters
This is called out in https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#selecting-values-from-arrays-or-hashtables
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.

2 participants