You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2020/10/02 15:34:14 UTC
[incubator-datalab] 02/10: [DLAB-1911]: fixed wrong variable 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-datalab.git
commit d7fc98a6e24fd3b3bc6cb65b92a3655b0ceb48c5
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Sep 29 12:37:31 2020 +0300
[DLAB-1911]: fixed wrong variable 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 726a2ec..3a1a8d4 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/project_prepare.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/project_prepare.py
@@ -231,7 +231,7 @@ if __name__ == "__main__":
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'], endpoint_public_ip).split(', ')
else:
- project_conf['allowed_ip_cidr'] = [project_conf['allowed_ip_cidr']]
+ project_conf['allowed_ip_cidr'] = [os.environ['conf_allowed_ip_cidr']]
ingress_rule['name'] = project_conf['fw_edge_ingress_public']
ingress_rule['targetTags'] = [project_conf['network_tag']]
ingress_rule['sourceRanges'] = project_conf['allowed_ip_cidr']
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org