boto_vpc: return an empty dict in case cannot get the route tables

This commit is contained in:
Quan Tong Anh 2015-11-10 07:19:51 +07:00 committed by rallytime
parent 356bf2987d
commit c3420461c3

View file

@ -2115,7 +2115,7 @@ def describe_route_table(route_table_id=None, route_table_name=None,
route_tables = conn.get_all_route_tables(**filter_parameters)
if not route_tables:
return False
return {}
route_table = {}
keys = ['id', 'vpc_id', 'tags', 'routes', 'associations']