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

Bugfix.

parent 3fc7dcb3
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment