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:18 UTC

[incubator-dlab] branch DLAB-606 created (now 36f93e9)

This is an automated email from the ASF dual-hosted git repository.

ioleksandr pushed a change to branch DLAB-606
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git.


      at 36f93e9  [DLAB-606] create peering route for secondary VPC

This branch includes the following new commits:

     new 36f93e9  [DLAB-606] create peering route for secondary VPC

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org


[incubator-dlab] 01/01: [DLAB-606] create peering route for secondary VPC

Posted by io...@apache.org.
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