You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/13 13:37:07 UTC

[GitHub] [airflow] cccs-cat001 commented on a change in pull request #13652: Fixed up entrypoint regex

cccs-cat001 commented on a change in pull request #13652:
URL: https://github.com/apache/airflow/pull/13652#discussion_r556523744



##########
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:
       Whoops! Fixed it :D 




----------------------------------------------------------------
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:
users@infra.apache.org