Commit af3b0e3b by Michael DeHaan

Merge pull request #728 from pas256/devel

Making inventory pattern matching handle group names
parents 47cead36 0188889a
......@@ -105,7 +105,7 @@ class Inventory(object):
inverted = False
for group in groups:
for host in group.get_hosts():
if group.name == pat or pat == 'all' or self._match(host.name, pat):
if self._match(group.name, pat) or pat == 'all' or self._match(host.name, pat):
# must test explicitly for None because [] means no hosts allowed
if self._restriction==None or host.name in self._restriction:
if inverted:
......
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