From 49e2cc75c22b9e14c61c5ecd15fe0903114186f5 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Mon, 23 Aug 2021 21:07:58 -0400 Subject: [PATCH] Make #492 follow-up fix of configuration provider docs for environment variables interpolation --- docs/providers/configuration.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/providers/configuration.rst b/docs/providers/configuration.rst index 3003884c..e5c3e1ae 100644 --- a/docs/providers/configuration.rst +++ b/docs/providers/configuration.rst @@ -50,9 +50,9 @@ where ``examples/providers/configuration/config.ini`` is: .. code-block:: ini [section] - option1 = {$ENV_VAR} - option2 = {$ENV_VAR}/path - option3 = {$ENV_VAR:default} + option1 = ${ENV_VAR} + option2 = ${ENV_VAR}/path + option3 = ${ENV_VAR:default} See also: :ref:`configuration-envs-interpolation`. @@ -208,7 +208,7 @@ variable ``ENV_NAME`` is undefined, configuration provider will substitute value .. code-block:: ini [section] - option = {$ENV_NAME:default} + option = ${ENV_NAME:default} If you'd like to specify a default value for environment variable inside of the application you can use ``os.environ.setdefault()``. @@ -380,7 +380,7 @@ an undefined environment variable without a default value. .. code-block:: ini section: - option: {$UNDEFINED} + option: ${UNDEFINED} .. code-block:: python