Skip to content

Commit

Permalink
Merge pull request #661 from ministryofjustice/fix-env-var-name
Browse files Browse the repository at this point in the history
Update get settings method in tools for airflow rename
  • Loading branch information
s-block authored May 2, 2019
2 parents 5fa7524 + c0f1d68 commit b41361a
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 b41361a

Please sign in to comment.