From 6c120f3b7788067857adbfcbb93f6314042cc2a1 Mon Sep 17 00:00:00 2001 From: Shahzeb Siddiqui Date: Tue, 18 Aug 2026 13:50:10 -0400 Subject: [PATCH] fix issue with --limit not working correctly --- shpc/main/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shpc/main/client.py b/shpc/main/client.py index 4e1539810..3f1330456 100644 --- a/shpc/main/client.py +++ b/shpc/main/client.py @@ -241,8 +241,8 @@ def show(self, name, names_only=False, out=None, filter_string=None, limit=None) for i, entry in enumerate( self.registry.iter_registry(filter_string=filter_string) ): - # Break after the limit - if limit and i > limit: + # Break after the limit or if limit is 0 + if (limit and i >= limit) or (limit == 0): break config = container.ContainerConfig(entry)