Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
6fcd292c
Commit
6fcd292c
authored
Sep 30, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12569 from amenonsen/fixes
Bring groups handling in ini.py up-to-date (trivial fix)
parents
dc7a0b7a
50d75f8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
lib/ansible/inventory/ini.py
+3
-6
No files found.
lib/ansible/inventory/ini.py
View file @
6fcd292c
...
...
@@ -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
=
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment