Skip to content

Commit 49e2cc7

Browse files
committed
Make ets-labs#492 follow-up fix of configuration provider docs for environment variables interpolation
1 parent eda67e4 commit 49e2cc7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/providers/configuration.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ where ``examples/providers/configuration/config.ini`` is:
5050
.. code-block:: ini
5151
5252
[section]
53-
option1 = {$ENV_VAR}
54-
option2 = {$ENV_VAR}/path
55-
option3 = {$ENV_VAR:default}
53+
option1 = ${ENV_VAR}
54+
option2 = ${ENV_VAR}/path
55+
option3 = ${ENV_VAR:default}
5656
5757
See also: :ref:`configuration-envs-interpolation`.
5858

@@ -208,7 +208,7 @@ variable ``ENV_NAME`` is undefined, configuration provider will substitute value
208208
.. code-block:: ini
209209
210210
[section]
211-
option = {$ENV_NAME:default}
211+
option = ${ENV_NAME:default}
212212
213213
If you'd like to specify a default value for environment variable inside of the application you can use
214214
``os.environ.setdefault()``.
@@ -380,7 +380,7 @@ an undefined environment variable without a default value.
380380
.. code-block:: ini
381381
382382
section:
383-
option: {$UNDEFINED}
383+
option: ${UNDEFINED}
384384
385385
.. code-block:: python
386386

0 commit comments

Comments
 (0)