Skip to content

Commit 2721cd8

Browse files
authored
Fix download url behind resource_provider (#2139)
Test for DAB/resource provider against the feature flags No-Issue
1 parent 6da3e8f commit 2721cd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

galaxy_ng/app/dynaconf_hooks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,10 +585,11 @@ def configure_legacy_roles(settings: Dynaconf) -> Dict[str, Any]:
585585

586586

587587
def configure_resource_provider(settings: Dynaconf) -> Dict[str, Any]:
588+
flags = settings.get("GALAXY_FEATURE_FLAGS")
589+
588590
# The following variable is either a URL or a key file path.
589591
ANSIBLE_BASE_JWT_KEY = settings.get("ANSIBLE_BASE_JWT_KEY")
590-
HUB_API_ROOT = settings.get("HUB_API_ROOT")
591-
if HUB_API_ROOT and (ANSIBLE_BASE_JWT_KEY in HUB_API_ROOT):
592+
if flags["dab_resource_registry"]:
592593
data = {
593594
"ANSIBLE_API_HOSTNAME": settings.get("ANSIBLE_API_HOSTNAME", ""),
594595
"ANSIBLE_CONTENT_HOSTNAME": settings.get("ANSIBLE_CONTENT_HOSTNAME", ""),

0 commit comments

Comments
 (0)