You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by om...@apache.org on 2019/09/26 12:45:40 UTC

[incubator-dlab] branch DLAB-1028 updated: fixed typo

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

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


The following commit(s) were added to refs/heads/DLAB-1028 by this push:
     new 49d4f13  fixed typo
49d4f13 is described below

commit 49d4f13d2fa4b1a329a785700b6c439e316c509c
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Thu Sep 26 15:45:32 2019 +0300

    fixed typo
---
 .../terraform/bin/deploy/endpoint_fab.py                       | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
index b95b3ff..613b02a 100644
--- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
+++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
@@ -223,11 +223,11 @@ def configure_supervisor_endpoint():
             if not exists(conn, web_path):
                 conn.run('mkdir -p {}'.format(web_path))
             if args.cloud_provider == 'aws':
-                interface = sudo('curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/')
-                args.vpc_id = sudo('curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/{}/'
-                                   'vpc-id'.format(interface))
-                args.subnet_id = sudo('curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/{}/'
-                                      'subnet-id'.format(interface))
+                interface = conn.sudo('curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/')
+                args.vpc_id = conn.sudo('curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/{}/'
+                                        'vpc-id'.format(interface))
+                args.subnet_id = conn.sudo('curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/{}/'
+                                           'subnet-id'.format(interface))
                 args.vpc2_id = args.vpc_id
                 args.subnet2_id = args.subnet_id
             conn.sudo('sed -i "s|OS_USR|{}|g" {}/tmp/supervisor_svc.conf'


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