Skip to content

Commit 2ee7044

Browse files
Update var names in get_related_nat_gateways() and get_related_igws() to reflect the retrieved related resources
1 parent f42acd6 commit 2ee7044

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/celpy/c7nlib.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -917,16 +917,16 @@ def get_related_nat_gateways(resource: celtypes.MapType,) -> celtypes.ListType:
917917
"""
918918
Reach into C7N and make a get_related_nat_gateways() request using the current C7N filter.
919919
"""
920-
subnets = C7N.filter.get_related_nat_gateways(resource)
921-
return json_to_cel(subnets)
920+
nat_gateways = C7N.filter.get_related_nat_gateways(resource)
921+
return json_to_cel(nat_gateways)
922922

923923

924924
def get_related_igws(resource: celtypes.MapType,) -> celtypes.ListType:
925925
"""
926926
Reach into C7N and make a get_related_igws() request using the current C7N filter.
927927
"""
928-
subnets = C7N.filter.get_related_igws(resource)
929-
return json_to_cel(subnets)
928+
igws = C7N.filter.get_related_igws(resource)
929+
return json_to_cel(igws)
930930

931931

932932
def security_group(security_group_id: celtypes.Value,) -> celtypes.Value:

0 commit comments

Comments
 (0)