Skip to content

Commit

Permalink
Merge pull request #4623 from zenoss/bugfix/ZEN-35181.7x
Browse files Browse the repository at this point in the history
configcache device stats handles no devices on the command line as se…
  • Loading branch information
jpeacock-zenoss authored Dec 6, 2024
2 parents f2f6f4b + 3f72f2f commit 85aa79e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Products/ZenCollector/configcache/cli/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 85aa79e

Please sign in to comment.