-
Notifications
You must be signed in to change notification settings - Fork 42
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
Generic object roles subcommand group #439
Conversation
fbf09fd
to
eff5f7e
Compare
pulpcore/cli/core/content_guard.py
Outdated
@@ -51,6 +52,7 @@ def rbac(ctx: click.Context, pulp_ctx: PulpContext) -> None: | |||
rbac.add_command(show_command(decorators=lookup_options)) | |||
rbac.add_command(update_command(decorators=lookup_options)) | |||
rbac.add_command(destroy_command(decorators=lookup_options)) | |||
rbac.add_command(role_command(decorators=lookup_options)) |
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.
Shouldn't each object adding the role command have needs_plugin=[PluginRequirement("core", min="3.17.0.dev")]
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.
That's a good observation.
7b6dde4
to
e598d57
Compare
* Provide the role_command generic. * Added to tasks, groups and RBAC content guards. [noissue]
e598d57
to
115c0de
Compare
@gerrod should be ready now. |
Cool! But wrong guy, I don't know what a pulp is. |
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.
Looks good!
allowed_with_contexts: Optional[Tuple[Type[PulpEntityContext]]] = None, | ||
**kwargs: Any, | ||
): | ||
self.needs_plugins = needs_plugins |
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.
👍
No description provided.