Skip to content

Commit a24c810

Browse files
committed
fix(config): set localhost default value for REANA_HOSTNAME (#717)
This PR is part of harmonizing the treatment of REANA_HOSTNAME accross all REANA components. You can refer to other PRs below. reanahub/reana#867 reanahub/reana-workflow-controller#630 Closes reanahub/reana#865
1 parent e54b414 commit a24c810

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

reana_server/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
#
33
# This file is part of REANA.
4-
# Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 CERN.
4+
# Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025 CERN.
55
#
66
# REANA is free software; you can redistribute it and/or modify it
77
# under the terms of the MIT License; see LICENSE file for more details.
@@ -32,7 +32,7 @@
3232

3333
SHARED_VOLUME_PATH = os.getenv("SHARED_VOLUME_PATH", "/var/reana")
3434

35-
REANA_HOSTNAME = os.getenv("REANA_HOSTNAME")
35+
REANA_HOSTNAME = os.getenv("REANA_HOSTNAME", "localhost")
3636

3737
REANA_SSO_CERN_CONSUMER_KEY = os.getenv("CERN_CONSUMER_KEY", "CHANGE_ME")
3838
REANA_SSO_CERN_CONSUMER_SECRET = os.getenv("CERN_CONSUMER_SECRET", "CHANGE_ME")

reana_server/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def __len__(self):
537537

538538

539539
def get_workspace_retention_rules(
540-
retention_days: Optional[Dict[str, int]]
540+
retention_days: Optional[Dict[str, int]],
541541
) -> List[Dict[str, any]]:
542542
"""Validate and return a list of retention rules.
543543

0 commit comments

Comments
 (0)