From 3f72f2f92a6db4027d5df46922bebbc62b2d249a Mon Sep 17 00:00:00 2001 From: Jason Peacock Date: Fri, 6 Dec 2024 08:17:13 -0600 Subject: [PATCH] configcache device stats handles no devices on the command line as selecting all devices. ZEN-35181 --- Products/ZenCollector/configcache/cli/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Products/ZenCollector/configcache/cli/stats.py b/Products/ZenCollector/configcache/cli/stats.py index 106057fd01..44be1aea36 100644 --- a/Products/ZenCollector/configcache/cli/stats.py +++ b/Products/ZenCollector/configcache/cli/stats.py @@ -206,6 +206,6 @@ def _make_statgroup(groupId, stats): def _get_device_predicate(devices, haswildcard): - if haswildcard: + if haswildcard or len(devices) == 0: return lambda x: True return lambda x: next((True for d in devices if x == d), False)