Skip to content

Commit

Permalink
1316 Update url config for consistency (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamHawtin authored Jan 11, 2024
1 parent 2984fca commit 52eeb69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class DevelopmentConfig(BaseConfig):
SESSION_COOKIE_SECURE = bool(strtobool(os.getenv('SESSION_COOKIE_SECURE', 'False')))

ACCOUNT_SERVICE_URL = f"{DOMAIN_URL_PROTOCOL}{DOMAIN_URL}"
RH_SVC_URL = os.getenv("RH_SVC_URL", "http://localhost:8071/")
RH_SVC_URL = os.getenv("RH_SVC_URL", "http://localhost:8071")


class TestingConfig(DevelopmentConfig):
DEBUG = False
RH_SVC_URL = os.getenv("RH_SVC_URL", "http://localhost:9071/")
RH_SVC_URL = os.getenv("RH_SVC_URL", "http://localhost:9071")
2 changes: 1 addition & 1 deletion rh_ui/controllers/rh_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_eq_token(uac: str, region: str) -> Response:


def request_eq_launch_token(uac_hash: str, region_code: str) -> Response:
rh_svc_url_token = (f'{current_app.config.get("RH_SVC_URL")}eqLaunch/{uac_hash}?languageCode={region_code}' +
rh_svc_url_token = (f'{current_app.config.get("RH_SVC_URL")}/eqLaunch/{uac_hash}?languageCode={region_code}' +
f'&accountServiceUrl={current_app.config.get("ACCOUNT_SERVICE_URL")}')
response = requests.get(rh_svc_url_token)
return response
Expand Down

0 comments on commit 52eeb69

Please sign in to comment.