mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-16 21:50:27 +00:00
Minor: Fix AzureSQL Authentication mode error (#16225)
This commit is contained in:
parent
81720a906f
commit
1971d8b019
@ -41,7 +41,10 @@ def get_connection_url(connection: Union[AzureSQLConnection, MssqlConnection]) -
|
||||
Build the connection URL
|
||||
"""
|
||||
|
||||
if connection.authenticationMode:
|
||||
if (
|
||||
hasattr(connection.authenticationMode, "authentication")
|
||||
and connection.authenticationMode.authentication is not None
|
||||
):
|
||||
connection_string = f"Driver={connection.driver};Server={connection.hostPort};Database={connection.database};"
|
||||
connection_string += f"Uid={connection.username};"
|
||||
if (
|
||||
|
Loading…
x
Reference in New Issue
Block a user