Commit 92997ec7 by Michael DeHaan

Merge pull request #2457 from robparrott/add_host-inventory-group-fix

invalidate group cache when adding a new group
parents 2baece3a 149f1f9f
......@@ -288,6 +288,7 @@ class Inventory(object):
def add_group(self, group):
self.groups.append(group)
self._groups_list = None # invalidate internal cache
def list_hosts(self, pattern="all"):
return [ h.name for h in self.get_hosts(pattern) ]
......
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