File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,11 @@ def get_or_create_jwt_secret(file_store: FileStore) -> str:
305
305
def finalize_config (cfg : AppConfig ) -> None :
306
306
"""More tweaks to the config after it's been loaded."""
307
307
# Handle the sandbox.volumes parameter
308
+ if cfg .workspace_base is not None or cfg .workspace_mount_path is not None :
309
+ logger .openhands_logger .warning (
310
+ 'DEPRECATED: The WORKSPACE_BASE and WORKSPACE_MOUNT_PATH environment variables are deprecated. '
311
+ "Please use RUNTIME_MOUNT instead, e.g. 'RUNTIME_MOUNT=/my/host/dir:/workspace:rw'"
312
+ )
308
313
if cfg .sandbox .volumes is not None :
309
314
# Split by commas to handle multiple mounts
310
315
mounts = cfg .sandbox .volumes .split (',' )
@@ -348,11 +353,6 @@ def finalize_config(cfg: AppConfig) -> None:
348
353
349
354
# Handle the deprecated workspace_* parameters
350
355
elif cfg .workspace_base is not None or cfg .workspace_mount_path is not None :
351
- logger .openhands_logger .warning (
352
- 'DEPRECATED: The WORKSPACE_BASE and WORKSPACE_MOUNT_PATH environment variables are deprecated. '
353
- "Please use RUNTIME_MOUNT instead, e.g. 'RUNTIME_MOUNT=/my/host/dir:/workspace:rw'"
354
- )
355
-
356
356
if cfg .workspace_base is not None :
357
357
cfg .workspace_base = os .path .abspath (cfg .workspace_base )
358
358
if cfg .workspace_mount_path is None :
You can’t perform that action at this time.
0 commit comments