From f43d5b6706c547770917fd879804d08b36f6912b Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Fri, 7 Oct 2016 15:46:40 +0800 Subject: Correct spelling error in function name Change-Id: I470a3266d68d19c7f7074cd6325169d94384d5e0 Signed-off-by: Yujun Zhang --- restful_server/db.py | 2 +- restful_server/qtip_server.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/restful_server/db.py b/restful_server/db.py index cf6ebfbb..074d4a2d 100644 --- a/restful_server/db.py +++ b/restful_server/db.py @@ -91,6 +91,6 @@ def stop_thread(job_id): del threads[job_id] -def update_benmark_state_in_state_detail(job_id, benchmark, benchmark_state): +def update_benchmark_state(job_id, benchmark, benchmark_state): filter(lambda x: x["benchmark"] == benchmark, get_job_info(job_id)["state_detail"])[0]['state'] = benchmark_state diff --git a/restful_server/qtip_server.py b/restful_server/qtip_server.py index 734a471c..19a57083 100644 --- a/restful_server/qtip_server.py +++ b/restful_server/qtip_server.py @@ -162,14 +162,14 @@ default is 'compute' for benchmark in benchmarks_list: if db.is_job_timeout(job_id) or stop_event.is_set(): break - db.update_benmark_state_in_state_detail(job_id, benchmark, 'processing') + db.update_benchmark_state(job_id, benchmark, 'processing') result = args_handler.prepare_and_run_benchmark(installer_type, '/home', args_handler.get_benchmark_path(pod_name, suite_name, benchmark)) db.update_job_result_detail(job_id, benchmark, copy(result)) - db.update_benmark_state_in_state_detail(job_id, benchmark, 'finished') + db.update_benchmark_state(job_id, benchmark, 'finished') db.finish_job(job_id) -- cgit 1.2.3-korg