From 73a2d87e5034fb19ca30d6162b652e6a92ca855b Mon Sep 17 00:00:00 2001 From: Mark Beierl Date: Wed, 9 Mar 2016 11:28:12 -0500 Subject: Fixup initilization Fetch the target from the correct field. Initialize the workloads to a known value Change-Id: Iadea5b580671fc2e4a1394248b800a446a37824a JIRA: STORPERF-36 STORPERF-37 Signed-off-by: Mark Beierl --- rest_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rest_server.py b/rest_server.py index a8459f3..073004a 100644 --- a/rest_server.py +++ b/rest_server.py @@ -78,13 +78,15 @@ class StartJob(Resource): try: if ('target' in request.json): - storperf.filename = request.json['filename'] + storperf.filename = request.json['target'] if ('nossd' in request.json): storperf.precondition = False if ('nowarm' in request.json): storperf.warm_up = False if ('workload' in request.json): storperf.workloads = request.json['workload'] + else: + storperf.workloads = None job_id = storperf.execute_workloads() -- cgit 1.2.3-korg