Skip to content

Commit

Permalink
[OPT-356] Wrong parent calculation for VPCEndpoint in CFT. Fixed lost…
Browse files Browse the repository at this point in the history
… components.
  • Loading branch information
rmenciac committed Aug 18, 2022
1 parent c1154cd commit b6e2890
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions startleft/iac/mapping/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ def __get_parent_names(self, source_model, source_object, id_parents, component_
parent = ""

if isinstance(parent, list):
if len(parent) == 0:
parent = [DEFAULT_TRUSTZONE]
for index, resource_id in enumerate(parent):
if is_terraform_resource_reference(resource_id):
parent[index] = get_resource_name_from_resource_reference(resource_id)
Expand Down

0 comments on commit b6e2890

Please sign in to comment.