add edge if dest_Vertex_index is not none
@@ -102,7 +102,7 @@ class CloudformationLocalGraph(LocalGraph):
for target_id in target_ids:
if isinstance(target_id, str):
dest_vertex_index = self._vertices_indexes.get(vertex_path, {}).get(target_id, None)
- if dest_vertex_index:
+ if dest_vertex_index is not None:
self._create_edge(origin_node_index, dest_vertex_index, label=attribute)
else:
logging.info(f"[CloudformationLocalGraph] didnt create edge for target_id {target_id}"
