You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by io...@apache.org on 2019/04/16 14:35:19 UTC
[incubator-dlab] 01/01: [DLAB-606] create peering route for
secondary VPC
This is an automated email from the ASF dual-hosted git repository.
ioleksandr pushed a commit to branch DLAB-606
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 36f93e97f0fb17dd7c9102e1ba55231cb4f8b14e
Author: Oleksandr_Isniuk <i....@gmail.com>
AuthorDate: Tue Apr 16 17:35:05 2019 +0300
[DLAB-606] create peering route for secondary VPC
---
infrastructure-provisioning/src/general/lib/aws/actions_lib.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
index 4513749..9fe4482 100644
--- a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
@@ -323,9 +323,10 @@ def create_peer_routes(peering_id, service_base_name):
VpcPeeringConnectionId=peering_id,
RouteTableId=table.get('RouteTableId'))
for table in route_tables2:
+ routes = table.get('Routes')
routeExists=False
for route in routes:
- if route.get('DestinationCidrBlock')==os.environ['conf_vpc2_cidr'].replace("'", ""):
+ if route.get('DestinationCidrBlock')==os.environ['conf_vpc_cidr'].replace("'", ""):
routeExists = True
if not routeExists:
client.create_route(
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org