-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
add filter support for one_template module #9547
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from my side, thanks for the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! Can you please add the changelog fragment as a file? (For example changelogs/fragments/9547-one_template-filter.yml
.) Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the changelog adjustment, LGTM
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]>
I'll merge this in a few days if nobody objects. |
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 thefilter
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:
filter
flag for retrieving templates which are not owned by the user (one_template only returns templates owned by user but not by group membership #9278).ISSUE TYPE
COMPONENT NAME
one_template
ADDITIONAL INFORMATION
See #9278 for a reproduction playbook and expected outputs.