Skip to content

Commit 7253f0b

Browse files
authored
Merge pull request #35 from daviddavis/publish-flags
Use flags for publish type
2 parents f6d0af5 + 1313ee7 commit 7253f0b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGES/36.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Use flags for ``--simple`` and ``--structured`` on publication create instead of having users
2+
specify a value of ``True``.

pulpcore/cli/deb/publication.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ def publication(ctx: click.Context, pulp_ctx: PulpContext, publication_type: str
5757
),
5858
click.option(
5959
"--simple",
60-
type=bool,
60+
is_flag=True,
6161
default=None,
6262
help=_("Apt only: Activate simple publishing mode"),
6363
),
6464
click.option(
6565
"--structured",
66-
type=bool,
66+
is_flag=True,
6767
default=None,
6868
help=_("Apt only: Activate structured publishing mode"),
6969
),

tests/scripts/pulp_deb/test_deb_sync_publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fi
4343

4444
expect_succ pulp deb publication create \
4545
--repository "${ENTITIES_NAME}_repo" \
46-
--simple "True"
46+
--simple
4747

4848
PUBLICATION_HREF=$(echo "$OUTPUT" | jq -r .pulp_href)
4949

0 commit comments

Comments
 (0)