Add tests for new advanced inventory features (groups of groups, group variables) in the default INI format file.

This commit is contained in:
Michael DeHaan 2012-05-06 18:01:11 -04:00
parent 1a00e2635e
commit 157d21b1c3
4 changed files with 94 additions and 10 deletions

View file

@ -57,6 +57,6 @@ class Host(object):
results.update(self.vars)
results['inventory_hostname'] = self.name
groups = self.get_groups()
results['group_names'] = [ g.name for g in groups if g.name != 'all']
results['group_names'] = sorted([ g.name for g in groups if g.name != 'all'])
return results