From e0a25857dd5c5a6ab81a1541a3393edca5348128 Mon Sep 17 00:00:00 2001 From: Balasankar 'Balu' C Date: Thu, 13 Nov 2025 19:27:47 +0530 Subject: [PATCH] Add ability to specify content-guard while creating or updating distribution closes #232 Signed-off-by: Balasankar 'Balu' C --- CHANGES/232.feature | 1 + pulpcore/cli/deb/distribution.py | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 CHANGES/232.feature diff --git a/CHANGES/232.feature b/CHANGES/232.feature new file mode 100644 index 0000000..d243089 --- /dev/null +++ b/CHANGES/232.feature @@ -0,0 +1 @@ +Add content-guard as an option to distribution creation and updation diff --git a/pulpcore/cli/deb/distribution.py b/pulpcore/cli/deb/distribution.py index 45e3744..a2f9f33 100644 --- a/pulpcore/cli/deb/distribution.py +++ b/pulpcore/cli/deb/distribution.py @@ -5,6 +5,7 @@ PulpCLIContext, base_path_contains_option, base_path_option, + content_guard_option, create_command, destroy_command, href_option, @@ -69,6 +70,7 @@ def distribution(ctx: click.Context, pulp_ctx: PulpCLIContext, /, distribution_t click.option("--base-path"), click.option("--publication", help=_("Publication to be served.")), repository_option, + content_guard_option, checkpoint_option, ] create_options = update_options + [click.option("--name", required=True)]