Skip to content

Commit d7aa5fe

Browse files
Made the Azure App Centralized Configuration Provider connection string
suffix ".azconfig.io" optional.
1 parent 37144e0 commit d7aa5fe

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

doc/src/release_notes.rst

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ Common Changes
7575
data frame
7676
- Eliminated small memory leak with production of each data frame
7777

78+
#) Made the :ref:`Azure App Centralized Configuration Provider
79+
<azureappstorageprovider>` connection string suffix ".azconfig.io"
80+
optional.
7881
#) Fixed bug when binding a variable that was previously bound as an output
7982
variable in a DML RETURNING statement.
8083
#) Fixed bug when multiple rows containing LOBs and DbObjects are returned in

doc/src/user_guide/connection_handling.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ The elements of the connection string are detailed in the table below.
14231423
- Indicates that the configuration provider is Azure App Configuration.
14241424
- Required
14251425
* - <appconfigname>
1426-
- The URL of the Azure App Configuration endpoint.
1426+
- The URL of the Azure App Configuration endpoint. The suffix ".azconfig.io" in the name is optional.
14271427
- Required
14281428
* - key=<prefix>
14291429
- A key prefix to identify the connection. You can organize configuration information under a prefix as per application requirements.

src/oracledb/plugins/azure_config_provider.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ def _parse_parameters(protocol_arg: str) -> dict:
188188
parameters = {
189189
key.lower(): value[0] for key, value in parsed_values.items()
190190
}
191-
parameters["appconfigname"] = protocol_arg[:pos]
191+
parameters["appconfigname"] = (
192+
protocol_arg[:pos].rstrip("/").rstrip(".azconfig.io") + ".azconfig.io"
193+
)
192194
return parameters
193195

194196

0 commit comments

Comments
 (0)