potiuk commented on a change in pull request #13652:
URL: https://github.com/apache/airflow/pull/13652#discussion_r556522419
##########
File path: scripts/in_container/prod/entrypoint_prod.sh
##########
@@ -52,9 +52,12 @@ function verify_db_connection {
if [[ ${DB_URL} != sqlite* ]]; then
# Auto-detect DB parameters
- [[ ${DB_URL} =~ ([^:]*)://([^@/]*)@?([^/:]*):?([0-9]*)/([^\?]*)\??(.*)
]] && \
+ [[ ${DB_URL} =~
([^:]*)://([^:]*[@.*]?):([^@]*)@?([^/:]*):?([0-9]*)/([^\?]*)\??(.*) ]] && \
DETECTED_DB_BACKEND=${BASH_REMATCH[1]} &&
# Not used USER match
+ # Not used PASSWORD match
+ DETECTED_DB_HOST=${BASH_REMATCH[4]} &&
+ DETECTED_DB_PORT=${BASH_REMATCH[5]} &&
DETECTED_DB_HOST=${BASH_REMATCH[3]} &&
Review comment:
thiose two should be deleted :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]