Skip to content

Commit

Permalink
Test for DAB/resource provider against the feature flags
Browse files Browse the repository at this point in the history
No-Issue
  • Loading branch information
bmclaughlin committed May 9, 2024
1 parent 6da3e8f commit 18ec807
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions galaxy_ng/app/dynaconf_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,11 @@ def configure_legacy_roles(settings: Dynaconf) -> Dict[str, Any]:


def configure_resource_provider(settings: Dynaconf) -> Dict[str, Any]:
flags = settings.get("GALAXY_FEATURE_FLAGS")

# The following variable is either a URL or a key file path.
ANSIBLE_BASE_JWT_KEY = settings.get("ANSIBLE_BASE_JWT_KEY")
HUB_API_ROOT = settings.get("HUB_API_ROOT")
if HUB_API_ROOT and (ANSIBLE_BASE_JWT_KEY in HUB_API_ROOT):
if flags["dab_resource_registry"]:
data = {
"ANSIBLE_API_HOSTNAME": settings.get("ANSIBLE_API_HOSTNAME", ""),
"ANSIBLE_CONTENT_HOSTNAME": settings.get("ANSIBLE_CONTENT_HOSTNAME", ""),
Expand Down

0 comments on commit 18ec807

Please sign in to comment.