This is an automated email from the ASF dual-hosted git repository.
omartushevskyi pushed a commit to branch DLAB-1467
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-1467 by this push:
new b20d09d [DLAB-1467]: Added terraform scripts for deploying DLab
endpoint
b20d09d is described below
commit b20d09d6a75d53be4c9d29d7ae5554acc788d68c
Author: Oleh Martushevskyi <[email protected]>
AuthorDate: Wed Feb 5 10:41:57 2020 +0200
[DLAB-1467]: Added terraform scripts for deploying DLab endpoint
---
infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
index 0c5cc6b..3b7df79 100644
--- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
+++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
@@ -130,11 +130,12 @@ def ensure_step_certs():
elif args.cloud_provider == 'azure':
local_ip_address = conn.sudo('curl -s -H Metadata:true
"http://169.254.169.254/metadata/'
'instance?api-version=2017-08-01&format=json" | jq -r ".network.'
-
'interface[].ipv4.ipAddress[].privateIpAddress"').stdout
+
'interface[].ipv4.ipAddress[].privateIpAddress"').stdout.replace('\n', '')
try:
public_ip_address = conn.sudo('curl -s -H Metadata:true
"http://169.254.169.254/metadata/'
'instance?api-version=2017-08-01&format=json" | jq -r ".network.'
-
'interface[].ipv4.ipAddress[].publicIpAddress"').stdout
+
'interface[].ipv4.ipAddress[].publicIpAddress"').stdout.replace('\n',
+
'')
except:
public_ip_address = None
else:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]