mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 20:27:43 +00:00
misc: added azure server label condition
This commit is contained in:
@@ -171,7 +171,7 @@ export const SqlDatabaseProvider = ({ gatewayService }: TSqlDatabaseProviderDTO)
|
|||||||
const azureServerLabel =
|
const azureServerLabel =
|
||||||
isAzureSql && providerInputs.gatewayId ? providerInputs.originalHost?.split(".")[0] : undefined;
|
isAzureSql && providerInputs.gatewayId ? providerInputs.originalHost?.split(".")[0] : undefined;
|
||||||
const effectiveUser =
|
const effectiveUser =
|
||||||
isAzureSql && !providerInputs.username.includes("@")
|
isAzureSql && !providerInputs.username.includes("@") && azureServerLabel
|
||||||
? `${providerInputs.username}@${azureServerLabel}`
|
? `${providerInputs.username}@${azureServerLabel}`
|
||||||
: providerInputs.username;
|
: providerInputs.username;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user