Skip to content

Commit

Permalink
update domain str length
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdawson1982 committed Sep 6, 2024
1 parent a7751e9 commit 5b9b468
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def generate_cache_configuration() -> dict[str, Any]:
)

domain: str = ".".join(
os.environ.get("REDIS_PRIMARY_ENDPOINT_ADDRESS", "").split(".")[2:]
os.environ.get("REDIS_PRIMARY_ENDPOINT_ADDRESS", "").split(".")[1:]
) # 'iwfvzo.euw2.cache.amazonaws.com'

hosts: list[str] = json.loads(
Expand All @@ -36,7 +36,6 @@ def generate_cache_configuration() -> dict[str, Any]:
location.append(
f"rediss://:{os.environ.get('REDIS_AUTH_TOKEN')}@{host}.{domain}/{REDIS_DB_VALUE}" # noqa: E501
)
print(location)

cache["LOCATION"] = location

Expand Down

0 comments on commit 5b9b468

Please sign in to comment.