Skip to content

Commit

Permalink
Make the AZ list unique if it tries to bring both public and private …
Browse files Browse the repository at this point in the history
…subnets (#244)
  • Loading branch information
ivancasco-sg authored Aug 23, 2023
1 parent dc4f1d3 commit 130a9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion efopen/ef_aws_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def ec2_vpc_availabilityzones(self, lookup, default=None):
}])
if len(subnets["Subnets"]) > 0:
# Strip the metadata section (subnets["Subnets"])
az_list = [s["AvailabilityZone"] for s in subnets["Subnets"]]
az_list = list(set([s["AvailabilityZone"] for s in subnets["Subnets"]]))
# Add internal ", " only. This is called literally from: "{{aws...}}" - CF template needs the outer quotes
return "\", \"".join(az_list)
else:
Expand Down

0 comments on commit 130a9fb

Please sign in to comment.