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
7c96f1d8
Commit
7c96f1d8
authored
Aug 08, 2014
by
Serge van Ginderachter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InventoryDir: fixing yet another corner case
parent
2d544480
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
lib/ansible/inventory/dir.py
+1
-1
No files found.
lib/ansible/inventory/dir.py
View file @
7c96f1d8
...
...
@@ -113,7 +113,7 @@ class InventoryDirectory(object):
for
group
in
allgroup
.
child_groups
[:]:
# groups might once have beeen added to all, and later be added
# to another group: we need to remove the link wit all then
if
len
(
group
.
parent_groups
)
>
1
:
if
len
(
group
.
parent_groups
)
>
1
and
allgroup
in
group
.
parent_groups
:
# real children of all have just 1 parent, all
# this one has more, so not a direct child of all anymore
group
.
parent_groups
.
remove
(
allgroup
)
...
...
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