From c0f1d68536c74be8c7830f70e545a80c5df98e12 Mon Sep 17 00:00:00 2001 From: Josh Rowe Date: Thu, 2 May 2019 15:06:56 +0100 Subject: [PATCH] Update get settings method in tools for airflow rename --- control_panel_api/tools.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/control_panel_api/tools.py b/control_panel_api/tools.py index a0b597fe6..1cbd6ffc2 100644 --- a/control_panel_api/tools.py +++ b/control_panel_api/tools.py @@ -123,6 +123,11 @@ def deploy_params(self, user): class Airflow(BaseTool): name = 'airflow-sqlite' + def _get_auth_client_config(self, key): + setting_key = sanitize_environment_variable( + f'AIRFLOW_AUTH_CLIENT_{key}') + return getattr(settings, setting_key.upper()) + def deploy_params(self, user): auth_proxy_cookie_secret = secrets.token_hex(32)