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

[PR #1069/2a033eee backport][0.28] Fixed the logic of the warning in list #1070

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/pulp-glue/1068.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed the "list" commands to show the notification about not displaying all items when it shouldn't and the other way around.
2 changes: 2 additions & 0 deletions pulp-glue/pulp_glue/common/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,8 @@ def list(self, limit: int, offset: int, parameters: t.Dict[str, t.Any]) -> t.Lis
self.list_iterator(parameters=parameters, offset=offset, stats=stats)
)
except StopIteration:
pass
else:
self.pulp_ctx.echo(
_("Not all {count} entries were shown.").format(count=stats["count"]), err=True
)
Expand Down
Loading