Skip to content
Snippets Groups Projects
Commit 73015a30 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Fixed a bug in using containers wiht no custom interface support with Singularity.

parent 69806fe7
Branches
Tags
No related merge requests found
...@@ -333,9 +333,12 @@ print(port) ...@@ -333,9 +333,12 @@ print(port)
container_engine = task.computing.default_container_engine container_engine = task.computing.default_container_engine
if container_engine=='singularity': if container_engine=='singularity':
# For Singularity, set this only if the container supports custom interface ports # For Singularity, set this only if the container supports custom
# interface ports. Otherwise, use the task container interface port.
if task.container.supports_custom_interface_port: if task.container.supports_custom_interface_port:
task.interface_port = int(task_interface_port) task.interface_port = int(task_interface_port)
else:
task.interface_port = task.container.interface_port
else: else:
# For all other container engines, set it in any case # For all other container engines, set it in any case
task.interface_port = int(task_interface_port) task.interface_port = int(task_interface_port)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment