You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/03/13 16:18:11 UTC

[incubator-dlab] 01/02: [DLAB-1594]: fixed error

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

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

commit 289e4f6cbd51b59a852d7a688501d80ffe461b01
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri Mar 13 18:08:05 2020 +0200

    [DLAB-1594]: fixed error
---
 infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py b/infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py
index 75a1b27..42871b1 100644
--- a/infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py
+++ b/infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py
@@ -81,7 +81,7 @@ def find_replace_line(file_path, searched_str, replacement_line):
                 if searched_str in line:
                     line = replacement_line
             with open(file_path, 'w') as file:
-                file.writelines(data)
+                file.writelines(lines)
     except Exception as err:
         print('Failed to replace string: ' + str(err))
         sys.exit(1)


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