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

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


The following commit(s) were added to refs/heads/DLAB-1594-2 by this push:
     new b58cbae  [DLAB-1594]: changed conf_letsencrypt_email assignment
b58cbae is described below

commit b58cbae63f443520caec5f2612662de9b299b230
Author: leonidfrolov <[email protected]>
AuthorDate: Mon Aug 3 18:30:28 2020 +0300

    [DLAB-1594]: changed conf_letsencrypt_email assignment
---
 .../src/general/scripts/gcp/ssn_configure.py            | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git 
a/infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py 
b/infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py
index 62c0991..c7b94b1 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py
@@ -422,11 +422,18 @@ if __name__ == "__main__":
                     'key': 'LETS_ENCRYPT_DOMAIN_NAME',
                     'value': os.environ['conf_letsencrypt_domain_name']
                 })
-            cloud_params.append(
-                {
-                    'key': 'LETS_ENCRYPT_EMAIL',
-                    'value': os.environ['conf_letsencrypt_email']
-                })
+            if 'conf_letsencrypt_email' in os.environ:
+                cloud_params.append(
+                    {
+                        'key': 'LETS_ENCRYPT_EMAIL',
+                        'value': os.environ['conf_letsencrypt_email']
+                    })
+            else:
+                cloud_params.append(
+                    {
+                        'key': 'LETS_ENCRYPT_EMAIL',
+                        'value': ''
+                    })
             cloud_params.append(
                 {
                     'key': 'STEP_CERTS_ENABLED',


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to