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 2021/02/22 14:18:48 UTC

[incubator-datalab] branch DATALAB-2091 updated: [DATALAB-2091]: removed \n from variable assigned from remote command output

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

lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/DATALAB-2091 by this push:
     new 02370a5  [DATALAB-2091]: removed \n from variable assigned from remote command output
02370a5 is described below

commit 02370a5f857a64cc36adabe4cb2552b7018bc3ca
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Feb 22 16:17:30 2021 +0200

    [DATALAB-2091]: removed \n from variable assigned from remote command output
---
 infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
index c99d912..ac261c5 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
@@ -142,7 +142,7 @@ def configure_ssl_certs(hostname, custom_ssl_cert):
                 conn.sudo('mkdir -p /home/{0}/keys'.format(args.os_user))
                 conn.sudo('''bash -c 'echo "{0}" | base64 --decode > /etc/ssl/certs/root_ca.crt' '''.format(
                      os.environ['conf_stepcerts_root_ca']))
-                fingerprint = conn.sudo('step certificate fingerprint /etc/ssl/certs/root_ca.crt').stdout
+                fingerprint = conn.sudo('step certificate fingerprint /etc/ssl/certs/root_ca.crt').stdout.replace('\n', '')
                 conn.sudo('step ca bootstrap --fingerprint {0} --ca-url "{1}"'.format(fingerprint,
                                                                                  os.environ['conf_stepcerts_ca_url']))
                 conn.sudo('echo "{0}" > /home/{1}/keys/provisioner_password'.format(


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