Fix KeyError if container does not contain the arguments field

This commit is contained in:
allegroai 2023-11-01 15:11:07 +02:00
parent ba4fee7b19
commit 9ad49a0d21

View File

@ -587,7 +587,7 @@ class K8sIntegration(Worker):
clearml_conf_create_script=clearml_conf_create_script,
labels=labels,
docker_image=container['image'],
docker_args=container['arguments'],
docker_args=container.get('arguments'),
docker_bash=container.get('setup_shell_script'),
task_id=task_id,
queue=queue,