Skip to content

Commit

Permalink
Update get settings method in tools for airflow rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Rowe committed May 2, 2019
1 parent 5fa7524 commit c0f1d68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions control_panel_api/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c0f1d68

Please sign in to comment.