X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=api%2Fresources%2Fv2%2Ftasks.py;h=885a190c6c040ef0721e8770be6191801e88e1b1;hb=7786deb79662368c80386e6eaee4e9bfe12fcd2f;hp=b64f5ef247b6ffc9b96e3f1bc9bb28fc75e552f3;hpb=a513db6bb8f5887f975a1b0152818b682fb67095;p=yardstick.git diff --git a/api/resources/v2/tasks.py b/api/resources/v2/tasks.py index b64f5ef24..885a190c6 100644 --- a/api/resources/v2/tasks.py +++ b/api/resources/v2/tasks.py @@ -114,7 +114,8 @@ class V2Task(ApiResource): if project.tasks: LOG.info('update tasks in project') - new_task_list = project.tasks.split(',').remove(task_id) + new_task_list = project.tasks.split(',') + new_task_list.remove(task_id) if new_task_list: new_tasks = ','.join(new_task_list) else: