You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/09/29 07:24:17 UTC

[incubator-dlab] branch DLAB-1911 updated: [DLAB-1911]: fixed wrong ip usage during edge node firewall creation on gcp

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

lfrolov pushed a commit to branch DLAB-1911
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-1911 by this push:
     new c81c2be  [DLAB-1911]: fixed wrong ip usage during edge node firewall creation on gcp
c81c2be is described below

commit c81c2be8f590d840a5270ccb8abaa852a2e942a8
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Sep 29 10:23:53 2020 +0300

    [DLAB-1911]: fixed wrong ip usage during edge node firewall creation on gcp
---
 infrastructure-provisioning/src/general/scripts/gcp/project_prepare.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/scripts/gcp/project_prepare.py b/infrastructure-provisioning/src/general/scripts/gcp/project_prepare.py
index ed0a479..3a7155e 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/project_prepare.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/project_prepare.py
@@ -233,7 +233,7 @@ if __name__ == "__main__":
             project_conf['allowed_ip_cidr'] = '{}, {}/32'.format(project_conf['allowed_ip_cidr'], ssn_public_ip).split(', ')
         elif os.environ['conf_allowed_ip_cidr'] != '0.0.0.0/0' and project_conf['endpoint_name'] != 'local':
             endpoint_public_ip = GCPMeta.get_instance_public_ip_by_name('{}-{}-endpoint'.format(project_conf['service_base_name'], project_conf['endpoint_name']))
-            project_conf['allowed_ip_cidr'] = '{}, {}/32'.format(project_conf['allowed_ip_cidr'], ssn_public_ip).split(', ')
+            project_conf['allowed_ip_cidr'] = '{}, {}/32'.format(project_conf['allowed_ip_cidr'], endpoint_public_ip).split(', ')
         else:
             project_conf['allowed_ip_cidr'] = [project_conf['allowed_ip_cidr']]
         ingress_rule['name'] = project_conf['fw_edge_ingress_public']


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