Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
edx
configuration
Commits
746ed762
Commit
746ed762
authored
Aug 10, 2016
by
Michael Roytman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverse edges in the graph to correct analyzer
parent
c364ef5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
util/parsefiles.py
+4
-4
No files found.
util/parsefiles.py
View file @
746ed762
...
...
@@ -81,8 +81,8 @@ def _map_roles_to_roles(graph, dirs, git_dir, key, type_1, type_2):
# add node for type_2, typically dependent role
node_2
=
Node
(
name
,
type_2
)
# add edge, typically
role - dependent
role
graph
.
add_edge
(
node_
1
,
node_2
)
# add edge, typically
dependent role -
role
graph
.
add_edge
(
node_
2
,
node_1
)
def
_map_plays_to_roles
(
graph
,
dirs
,
git_dir
,
key
,
type_1
,
type_2
):
"""
...
...
@@ -130,8 +130,8 @@ def _map_plays_to_roles(graph, dirs, git_dir, key, type_1, type_2):
# add node for type_2, typically for role
node_2
=
Node
(
name
,
type_2
)
# add edge, typically
playbook - role it uses
graph
.
add_edge
(
node_
1
,
node_2
)
# add edge, typically
role - playbook that uses it
graph
.
add_edge
(
node_
2
,
node_1
)
def
_open_yaml_file
(
file_str
):
"""
...
...
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