[DLAB-1594]: fixed error
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 @@
                 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)