This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-9-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit c4624fd336942c5477ceb21592960e19dea645a5
Author: Kalle Ahlström <[email protected]>
AuthorDate: Wed May 1 05:40:50 2024 +0300

    docs: fix environment variable names when section name has dot in it 
(#39312)
    
    (cherry picked from commit f6fb4ccf2dd048eb0024caec3baf44abc14a9307)
---
 docs/exts/includes/sections-and-options.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/exts/includes/sections-and-options.rst 
b/docs/exts/includes/sections-and-options.rst
index 33ea64231f..f191cf10d5 100644
--- a/docs/exts/includes/sections-and-options.rst
+++ b/docs/exts/includes/sections-and-options.rst
@@ -63,13 +63,13 @@
     :Default: ``{{ "''" if option["default"] == "" else option["default"] }}``
         {% if option.get("sensitive") %}
     :Environment Variables:
-      ``AIRFLOW__{{ section_name | upper }}__{{ option_name | upper }}``
+      ``AIRFLOW__{{ section_name | replace(".", "_") | upper }}__{{ 
option_name | upper }}``
 
-      ``AIRFLOW__{{ section_name | upper }}__{{ option_name | upper }}_CMD``
+      ``AIRFLOW__{{ section_name | replace(".", "_") | upper }}__{{ 
option_name | upper }}_CMD``
 
-      ``AIRFLOW__{{ section_name | upper }}__{{ option_name | upper }}_SECRET``
+      ``AIRFLOW__{{ section_name | replace(".", "_") | upper }}__{{ 
option_name | upper }}_SECRET``
         {% else %}
-    :Environment Variable: ``AIRFLOW__{{ section_name | upper }}__{{ 
option_name | upper }}``
+    :Environment Variable: ``AIRFLOW__{{ section_name | replace(".", "_") | 
upper }}__{{ option_name | upper }}``
         {% endif %}
         {% if option["example"] %}
     :Example:

Reply via email to