From cdac73c84cb6533093d77c21d1ad4522123e56a5 Mon Sep 17 00:00:00 2001 From: Stefano Alberto Russo <stefano.russo@gmail.com> Date: Thu, 2 Dec 2021 01:07:27 +0100 Subject: [PATCH] Bugfix. --- services/webapp/code/rosetta/core_app/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/webapp/code/rosetta/core_app/views.py b/services/webapp/code/rosetta/core_app/views.py index 21687ed..b8927d4 100644 --- a/services/webapp/code/rosetta/core_app/views.py +++ b/services/webapp/code/rosetta/core_app/views.py @@ -517,6 +517,9 @@ def new_task(request): # Check that container required architecture is compatible with the computing resource # TODO: support setting the container runtime when creating the task # TODO: refactor and unroll this code + if data['task_computing'].supported_archs is None: data['task_computing'].supported_archs=[] + if data['task_computing'].emulated_archs is None: data['task_computing'].emulated_archs={} + if data['task_container'].image_arch: if (data['task_container'].image_arch != data['task_computing'].arch) and (data['task_container'].image_arch not in data['task_computing'].supported_archs): -- GitLab