Exclude the all/ungrouped groups from pattern matching results
Fixes #5375
This commit is contained in:
parent
90445ee67d
commit
87ca475704
1 changed files with 1 additions and 1 deletions
|
@ -364,7 +364,7 @@ class Inventory(object):
|
||||||
for host in group.get_hosts():
|
for host in group.get_hosts():
|
||||||
__append_host_to_results(host)
|
__append_host_to_results(host)
|
||||||
else:
|
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():
|
for host in group.get_hosts():
|
||||||
__append_host_to_results(host)
|
__append_host_to_results(host)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue