Skip to content

Commit 922b3dd

Browse files
committed
Fixed newline error for create_databases
1 parent a779a26 commit 922b3dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layersbox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ def create_databases(dir, service_name, database_env_files):
724724
elif "_DB_USER" in line:
725725
db_username = line.split("=")[1]
726726
elif "_DB_FILE" in line:
727-
db_file = line.split("=")[1].replace('\n', '')
727+
db_file = line.split("=")[1].replace('\n', '').replace('\r', '')
728728
db_exists = True
729729
shutil.copyfile(join(servicedir, service_name, db_file), join(dir, "tmp", "sqlfile", "db.sql"))
730730

@@ -769,7 +769,7 @@ def create_oidcclients(dir, service_name, oidcclient_env_files):
769769
ctx.check_hostname = False
770770
ctx.verify_mode = ssl.CERT_NONE
771771
else:
772-
# For older pythons the warnings do not stop the show and can be ignored
772+
# For older pythons the warnings do not stop the show and can be ignored
773773
# (anyways, they don't have the ssl.create_default_context.)
774774
ctx = None
775775

0 commit comments

Comments
 (0)