From 40ac24e788752e33c6403198d744c2ecbe03df9b Mon Sep 17 00:00:00 2001 From: Andrei Neagu Date: Mon, 16 Dec 2024 15:38:19 +0100 Subject: [PATCH] refactor --- .../modules/osparc_variables/substitutions.py | 2 +- .../director-v2/tests/unit/test_modules_osparc_variables.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/director-v2/src/simcore_service_director_v2/modules/osparc_variables/substitutions.py b/services/director-v2/src/simcore_service_director_v2/modules/osparc_variables/substitutions.py index bff2faad598..2249937341d 100644 --- a/services/director-v2/src/simcore_service_director_v2/modules/osparc_variables/substitutions.py +++ b/services/director-v2/src/simcore_service_director_v2/modules/osparc_variables/substitutions.py @@ -121,7 +121,7 @@ def create(cls, app: FastAPI): ("OSPARC_VARIABLE_NODE_ID", "node_id"), ("OSPARC_VARIABLE_PRODUCT_NAME", "product_name"), ("OSPARC_VARIABLE_STUDY_UUID", "project_id"), - ("OSPARC_VARIABLE_RUN_ID", "run_id"), + ("OSPARC_VARIABLE_SERVICE_RUN_ID", "run_id"), ("OSPARC_VARIABLE_USER_ID", "user_id"), ("OSPARC_VARIABLE_API_HOST", "api_server_base_url"), ]: diff --git a/services/director-v2/tests/unit/test_modules_osparc_variables.py b/services/director-v2/tests/unit/test_modules_osparc_variables.py index 6f1c561b163..61427034a45 100644 --- a/services/director-v2/tests/unit/test_modules_osparc_variables.py +++ b/services/director-v2/tests/unit/test_modules_osparc_variables.py @@ -174,7 +174,7 @@ async def test_resolve_and_substitute_session_variables_in_specs( "user_role": "${OSPARC_VARIABLE_USER_ROLE}", "api_key": "${OSPARC_VARIABLE_API_KEY}", "api_secret": "${OSPARC_VARIABLE_API_SECRET}", - "run_id": "${OSPARC_VARIABLE_RUN_ID}", + "service_run_id": "${OSPARC_VARIABLE_SERVICE_RUN_ID}", } print("SPECS\n", specs)