summaryrefslogtreecommitdiffstats
path: root/rest_server.py
diff options
context:
space:
mode:
authorMark Beierl <mark.beierl@emc.com>2016-03-09 11:28:12 -0500
committerMark Beierl <mark.beierl@emc.com>2016-03-09 11:28:12 -0500
commit73a2d87e5034fb19ca30d6162b652e6a92ca855b (patch)
treec2b9f29b9b473fb571ff0c777f6c730443f5581f /rest_server.py
parent0b1b250f363e3db2fc5bcf44dc74688fb5673c8a (diff)
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 <mark.beierl@emc.com>
Diffstat (limited to 'rest_server.py')
-rw-r--r--rest_server.py4
1 files changed, 3 insertions, 1 deletions
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()