mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #12569 from amenonsen/fixes
Bring groups handling in ini.py up-to-date (trivial fix)
This commit is contained in:
commit
6fcd292c5e
1 changed files with 3 additions and 6 deletions
|
@ -38,15 +38,12 @@ class InventoryParser(object):
|
|||
with their associated hosts and variable settings.
|
||||
"""
|
||||
|
||||
def __init__(self, loader, groups=None, filename=C.DEFAULT_HOST_LIST):
|
||||
if groups is None:
|
||||
groups = dict()
|
||||
|
||||
def __init__(self, loader, groups, filename=C.DEFAULT_HOST_LIST):
|
||||
self._loader = loader
|
||||
self.filename = filename
|
||||
|
||||
# Start with an empty host list and the default 'all' and
|
||||
# 'ungrouped' groups.
|
||||
# Start with an empty host list and whatever groups we're passed in
|
||||
# (which should include the default 'all' and 'ungrouped' groups).
|
||||
|
||||
self.hosts = {}
|
||||
self.patterns = {}
|
||||
|
|
Loading…
Reference in a new issue