Skip to content

Commit

Permalink
Set minimum for limit to 1
Browse files Browse the repository at this point in the history
fixes pulp#311
  • Loading branch information
David Davis committed Jul 21, 2021
1 parent 7dd0877 commit 8693670
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/311.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added minimum of 1 to limit option.
2 changes: 1 addition & 1 deletion pulpcore/cli/common/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def _multi_option_callback(
limit_option = pulp_option(
"--limit",
default=DEFAULT_LIMIT,
type=int,
type=click.IntRange(1),
help=_("Limit the number of {entities} to show."),
)
offset_option = pulp_option(
Expand Down

0 comments on commit 8693670

Please sign in to comment.