Skip to content

Commit

Permalink
Mark group permission unusable for pulpcore 3.20
Browse files Browse the repository at this point in the history
fixes pulp#501

(cherry picked from commit 7f5c638)
  • Loading branch information
mdellweg committed Jul 15, 2022
1 parent f13bed3 commit b1749c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/501.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Marked `group permission` command unusable with pulpcore 3.20.
5 changes: 3 additions & 2 deletions pulpcore/cli/core/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
lookup_callback,
name_option,
null_callback,
pulp_group,
role_command,
show_command,
)
Expand Down Expand Up @@ -52,7 +53,7 @@ def _object_callback(ctx: click.Context, param: click.Parameter, value: str) ->
)


@click.group(help=_("Manage user groups and their granted permissions."))
@pulp_group(help=_("Manage user groups."))
@pass_pulp_context
@click.pass_context
def group(ctx: click.Context, pulp_ctx: PulpContext) -> None:
Expand All @@ -71,7 +72,7 @@ def group(ctx: click.Context, pulp_ctx: PulpContext) -> None:
)


@group.group()
@group.group(needs_plugins=[PluginRequirement("core", max="3.20-dev")])
@click.option(
"-t",
"--type",
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/pulpcore/test_group_permissions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# shellcheck source=tests/scripts/config.source
. "$(dirname "$(dirname "$(realpath "$0")")")"/config.source

pulp debug has-plugin --name "core" || exit 3
pulp debug has-plugin --name "core" --max-version "3.20-dev" || exit 3

cleanup() {
pulp group destroy --name "cli_test_group" || true
Expand Down

0 comments on commit b1749c1

Please sign in to comment.