Skip to content

Commit

Permalink
Set feature flag base on setting (#15808)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu authored Feb 4, 2025
1 parent a74e730 commit 15932e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions awx/settings/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,8 @@
set_application_name(DATABASES, CLUSTER_HOST_ID) # NOQA

del set_application_name

# Set the value of any feature flags that are defined in the local settings
for feature in list(FLAGS.keys()): # noqa: F405
if feature in locals():
FLAGS[feature][0]['value'] = locals()[feature] # noqa: F405
5 changes: 5 additions & 0 deletions awx/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,8 @@
set_application_name(DATABASES, CLUSTER_HOST_ID) # NOQA

del set_application_name

# Set the value of any feature flags that are defined in the local settings
for feature in list(FLAGS.keys()): # noqa: F405
if feature in locals():
FLAGS[feature][0]['value'] = locals()[feature] # noqa: F405

0 comments on commit 15932e3

Please sign in to comment.