diff --git a/services/webapp/code/rosetta/core_app/views.py b/services/webapp/code/rosetta/core_app/views.py index 21687edb32af4057aa73d3941321277030703d8a..b8927d45ad6fe4d46295d62b8bbde15a669eeb27 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):