diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-10-07 08:54:23 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-07 08:54:23 +0000 |
commit | a5ec8f76b940183ba78f7086c0bb20053422dc67 (patch) | |
tree | a43c00275754224239eeca91fc62bd8df058b5e4 | |
parent | 65aa5a6ba57e43e8bb2dce569426c41f58e091e6 (diff) | |
parent | f43d5b6706c547770917fd879804d08b36f6912b (diff) |
Merge "Correct spelling error in function name"
-rw-r--r-- | restful_server/db.py | 2 | ||||
-rw-r--r-- | 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 75f3e1b8..8da64187 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 04d4f9ee..81ce941e 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) |