Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
Prefer ENIs to instances when showing route tables
Browse files Browse the repository at this point in the history
Fixes TOOLS-634
  • Loading branch information
gholms committed Nov 21, 2016
1 parent 9918832 commit 0ddac54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion euca2ools/commands/ec2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,9 @@ def print_route_table(self, table):
print self.tabify(('ROUTETABLE', table.get('routeTableId'),
table.get('vpcId')))
for route in table.get('routeSet') or []:
target = (route.get('gatewayId') or route.get('instanceId') or
target = (route.get('gatewayId') or
route.get('networkInterfaceId') or
route.get('instanceId') or
route.get('natGatewayId') or
route.get('vpcPeeringConnectionId'))
print self.tabify((
Expand Down

0 comments on commit 0ddac54

Please sign in to comment.