You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/12/03 00:10:03 UTC

[airflow] 02/34: Typo Fix: Deprecated config force_log_out_after was not used (#12661)

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

kaxilnaik pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit b6fe105b256a7a6b23722f942d1810ad55cc6ee1
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Fri Nov 27 17:36:10 2020 +0000

    Typo Fix: Deprecated config force_log_out_after was not used (#12661)
    
    `force_logout_after` should be `force_log_out_after` in the code
    section https://github.com/apache/airflow/blob/master/airflow/settings.py#L372-L381.
    
    As `force_log_out_after` is actually used and written in
    https://github.com/apache/airflow/blob/c5700a56bb3b9a5b872bda0fe0d3de82b0128bdf/UPDATING.md#unify-user-session-lifetime-configuration.
    
    (cherry picked from commit 531e00660af0cc7729792ef08559edd84c6c46ab)
---
 airflow/settings.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow/settings.py b/airflow/settings.py
index 2aedb72..c708d90 100644
--- a/airflow/settings.py
+++ b/airflow/settings.py
@@ -386,7 +386,7 @@ def get_session_lifetime_config():
     session_lifetime_minutes = conf.get('webserver', 'session_lifetime_minutes', fallback=None)
     session_lifetime_days = conf.get('webserver', 'session_lifetime_days', fallback=None)
     uses_deprecated_lifetime_configs = session_lifetime_days or conf.get(
-        'webserver', 'force_logout_after', fallback=None
+        'webserver', 'force_log_out_after', fallback=None
     )
 
     minutes_per_day = 24 * 60
@@ -395,7 +395,7 @@ def get_session_lifetime_config():
         warnings.warn(
             '`session_lifetime_days` option from `[webserver]` section has been '
             'renamed to `session_lifetime_minutes`. The new option allows to configure '
-            'session lifetime in minutes. The `force_logout_after` option has been removed '
+            'session lifetime in minutes. The `force_log_out_after` option has been removed '
             'from `[webserver]` section. Please update your configuration.',
             category=DeprecationWarning,
         )