Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
omriyoffe-panw committed Oct 22, 2024
1 parent a21c83a commit 9810aa8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion checkov/arm/graph_builder/context_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ def build_definitions_context(definitions: Dict[Path, Any], definitions_raw: Dic
) -> Dict[str, Dict[str, Any]]:
# TODO
pass

4 changes: 1 addition & 3 deletions checkov/arm/graph_builder/local_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def __init__(self, definitions: dict[str, dict[str, Any]]) -> None:
self.vertices_by_path_and_id: dict[tuple[str, str], int] = {}
self.vertices_by_name: dict[str, int] = {}


def build_graph(self, render_variables: bool = False) -> None:
self._create_vertices()
logging.debug(f"[ArmLocalGraph] created {len(self.vertices)} vertices")
Expand Down Expand Up @@ -129,7 +128,7 @@ def _create_edge(self, element_name: str, origin_vertex_index: int, label: str)
self.in_edges[dest_vertex_index].append(edge)

def _create_implicit_edges(self, origin_vertex_index: int, resource_name: str, d: dict[str, Any]) -> None:
for key, value in d.items():
for _, value in d.items():
if isinstance(value, str):
if 'reference' in value:
self._create_implicit_edge(origin_vertex_index, resource_name, value)
Expand All @@ -138,7 +137,6 @@ def _create_implicit_edge(self, origin_vertex_index: int, resource_name: str, re
dep_name = extract_resource_name_from_reference_func(reference_string)
self._create_edge(dep_name, origin_vertex_index, f'{resource_name}->{dep_name}')


def update_vertices_configs(self) -> None:
# not used
pass
Expand Down

0 comments on commit 9810aa8

Please sign in to comment.