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

[PR #9547/c823e37d backport][stable-10] add filter support for one_template module #9575

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Jan 15, 2025

This is a backport of PR #9547 as merged into main (c823e37).

SUMMARY

Fixes #9278

As discussed in the issue a filter flag was added to the one_template module. The default behavior is preserved by setting the filter option to the default value of -3. Users can change the behavior by using values from -1 to -4.

Edit: filter option was changed to user friendly values (user, user_groups, ...) and internally the module converts those to the integers needed for the OpenNebula API.

The description of the module was also updated with an explanation of those values.

minor_changes:

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

one_template

ADDITIONAL INFORMATION

See #9278 for a reproduction playbook and expected outputs.

apply suggestion from code review
add one_template filter changelog fragment
rewrote filter flag to use string instead of int
renamed flag to option in changelog
added PR link to changelog fragment

Co-authored-by: Felix Fontein <[email protected]>
Co-authored-by: Alexei Znamensky <[email protected]>
(cherry picked from commit c823e37)
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added backport feature This issue/PR relates to a feature request module module new_contributor Help guide this first time contributor plugins plugin (any type) labels Jan 15, 2025
@felixfontein felixfontein merged commit 1bc052a into stable-10 Jan 15, 2025
138 checks passed
@felixfontein felixfontein deleted the patchback/backports/stable-10/c823e37d00015251f152d05fca1f85d117612a20/pr-9547 branch January 15, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport feature This issue/PR relates to a feature request module module new_contributor Help guide this first time contributor plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants