Skip to content

Commit

Permalink
config: REANA_URL -> REANA_HOSTNAME
Browse files Browse the repository at this point in the history
Renames `REANA_URL` to a more precise `REANA_HOSTNAME` everywhere in
the code base.

Signed-off-by: Tibor Šimko <tibor.simko@cern.ch>
  • Loading branch information
tiborsimko committed Sep 16, 2020
1 parent 52fcc10 commit cf18f6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion reana_workflow_controller/config.py
Expand Up @@ -102,7 +102,7 @@
REANA_GITLAB_URL = "https://{}".format(REANA_GITLAB_HOST)
"""GitLab API URL"""

REANA_URL = os.getenv("REANA_URL", "CHANGE_ME")
REANA_HOSTNAME = os.getenv("REANA_HOSTNAME", "CHANGE_ME")
"""REANA URL"""

IMAGE_PULL_SECRETS = os.getenv("IMAGE_PULL_SECRETS", "").split(",")
Expand Down
4 changes: 2 additions & 2 deletions reana_workflow_controller/consumer.py
Expand Up @@ -36,7 +36,7 @@
from reana_workflow_controller.config import (
PROGRESS_STATUSES,
REANA_GITLAB_URL,
REANA_URL,
REANA_HOSTNAME,
)
from reana_workflow_controller.errors import REANAWorkflowControllerError

Expand Down Expand Up @@ -127,7 +127,7 @@ def _update_commit_status(workflow, status):
state = "running"
secret_store = REANAUserSecretsStore(workflow.owner_id)
gitlab_access_token = secret_store.get_secret_value("gitlab_access_token")
target_url = f"https://{REANA_URL}/api/workflows/{workflow.id_}/logs"
target_url = f"https://{REANA_HOSTNAME}/api/workflows/{workflow.id_}/logs"
workflow_name = urlparse.quote_plus(workflow.git_repo)
commit_status_url = (
f"{REANA_GITLAB_URL}/api/v4/projects/{workflow_name}/statuses/"
Expand Down

0 comments on commit cf18f6f

Please sign in to comment.