Skip to content

Commit

Permalink
fix: Replace forgotten my_blocks to block_list + bold edge from play …
Browse files Browse the repository at this point in the history
…to role
  • Loading branch information
haidaraM committed Aug 29, 2021
1 parent 80e9fbf commit fb71980
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ansibleplaybookgrapher/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ def _include_tasks_in_blocks(self, current_play: Play, parent_node: CompositeNod
# See :func:`~ansible.playbook.included_file.IncludedFile.process_include_results` from line 155

self.display.v(f"An 'include_role' found. Including tasks from '{task_or_block.args['name']}'")
my_blocks, _ = task_or_block.get_block_list(play=current_play, loader=self.data_loader,
variable_manager=self.variable_manager)
block_list, _ = task_or_block.get_block_list(play=current_play, loader=self.data_loader,
variable_manager=self.variable_manager)
else:
self.display.v(f"An 'include_tasks' found. Including tasks from '{task_or_block.get_name()}'")

Expand Down
2 changes: 1 addition & 1 deletion ansibleplaybookgrapher/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _convert_to_graphviz(self):
# from play to role
role_subgraph.node(role.id, id=role.id, label=role.label, tooltip=role.label)
play_subgraph.edge(play.id, role.id, label=role_edge.label, color=color, fontcolor=color,
id=role_edge.id)
style="bold", id=role_edge.id)

# role tasks
for role_task_edge in role.tasks:
Expand Down

0 comments on commit fb71980

Please sign in to comment.