summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Beierl <mark.beierl@emc.com>2016-04-05 13:42:31 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-04-05 13:42:31 +0000
commit858b8b2747403bfbf61180d26e28ccb21deee287 (patch)
treec2b9f29b9b473fb571ff0c777f6c730443f5581f
parenteae6bd42d490f719d00264706c4570189a975597 (diff)
parent2d20087f5af76e7284062f4f3c3df63405d1f393 (diff)
Merge "Fixup initilization" into stable/brahmaputrastable/brahmaputra
-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()