Commit 9ba795cd by Michael Roytman

Reverse edges in the graph to correct analyzer

parent 740c4daf
...@@ -81,8 +81,8 @@ def _map_roles_to_roles(graph, dirs, git_dir, key, type_1, type_2): ...@@ -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 # add node for type_2, typically dependent role
node_2 = Node(name, type_2) node_2 = Node(name, type_2)
# add edge, typically role - dependent role # add edge, typically dependent role - role
graph.add_edge(node_1, node_2) graph.add_edge(node_2, node_1)
def _map_plays_to_roles(graph, dirs, git_dir, key, type_1, type_2): 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): ...@@ -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 # add node for type_2, typically for role
node_2 = Node(name, type_2) node_2 = Node(name, type_2)
# add edge, typically playbook - role it uses # add edge, typically role - playbook that uses it
graph.add_edge(node_1, node_2) graph.add_edge(node_2, node_1)
def _open_yaml_file(file_str): def _open_yaml_file(file_str):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment