This is an automated email from the ASF dual-hosted git repository. mykolabodnar pushed a commit to branch DLAB-1835 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit e7f8eab8cd8245e035dee424f2a04fd586a4a2e7 Author: bodnarmykola <[email protected]> AuthorDate: Mon Jun 1 23:21:09 2020 +0300 [DLAB-1835]- Connecting to Edge node fixed --- .../src/general/scripts/aws/edge_configure.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/infrastructure-provisioning/src/general/scripts/aws/edge_configure.py b/infrastructure-provisioning/src/general/scripts/aws/edge_configure.py index d96ef49..cfb4aa9 100644 --- a/infrastructure-provisioning/src/general/scripts/aws/edge_configure.py +++ b/infrastructure-provisioning/src/general/scripts/aws/edge_configure.py @@ -110,8 +110,13 @@ if __name__ == "__main__": for cidr in os.environ['conf_allowed_ip_cidr'].split(','): edge_conf['allowed_ip_cidr'].append(cidr.replace(' ', '')) - edge_conf['instance_hostname'] = dlab.meta_lib.get_instance_hostname(edge_conf['tag_name'], - edge_conf['instance_name']) + if edge_conf['network_type'] == 'public': + edge_conf['instance_hostname'] = dlab.meta_lib.get_instance_hostname(edge_conf['tag_name'], + edge_conf['instance_name']) + elif edge_conf['network_type'] == 'private': + edge_conf['instance_hostname'] = dlab.meta_lib.get_instance_ip_address( + edge_conf['tag_name'], edge_conf['instance_name']).get('Private') + edge_conf['keyfile_name'] = "{}{}.pem".format(os.environ['conf_key_dir'], edge_conf['key_name']) if os.environ['conf_stepcerts_enabled'] == 'true': --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
