Commit 87ca4757 by James Cammarata

Exclude the all/ungrouped groups from pattern matching results

Fixes #5375
parent 90445ee6
......@@ -364,7 +364,7 @@ class Inventory(object):
for host in group.get_hosts():
__append_host_to_results(host)
else:
if self._match(group.name, pattern):
if self._match(group.name, pattern) and group.name not in ('all', 'ungrouped'):
for host in group.get_hosts():
__append_host_to_results(host)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment