diff options
Diffstat (limited to 'rest_server.py')
-rw-r--r-- | rest_server.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rest_server.py b/rest_server.py index 073004a..ffb750e 100644 --- a/rest_server.py +++ b/rest_server.py @@ -62,7 +62,6 @@ class Configure(Resource): storperf.delete_stack() except Exception as e: abort(400, str(e)) - pass class StartJob(Resource): @@ -87,6 +86,9 @@ class StartJob(Resource): storperf.workloads = request.json['workload'] else: storperf.workloads = None + # Add block size, queue depth, number of passes here. + if ('workload' in request.json): + storperf.workloads = request.json['workload'] job_id = storperf.execute_workloads() |