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

Fixed crashing pulp domain #770

Merged
merged 1 commit into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/769.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed a crash in `pulp domain` when a default value for `--domain` was provided in the config file.
4 changes: 3 additions & 1 deletion pulpcore/cli/core/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
_ = translation.gettext


@pulp_group()
# We need to override the default_map, because we may read a default value for the `--domain`
# option from the config file that will collide here.
@pulp_group(name="domain", context_settings={"default_map": {}})
@pass_pulp_context
@click.pass_context
def domain(ctx: click.Context, pulp_ctx: PulpContext) -> None:
Expand Down