diff options
author | 2016-03-09 11:28:12 -0500 | |
---|---|---|
committer | 2016-04-05 13:40:33 +0000 | |
commit | 2d20087f5af76e7284062f4f3c3df63405d1f393 (patch) | |
tree | e5f55db093fdd4f0d5f6038c5c80b5281db43089 | |
parent | 0107544521876db145027ff44d08695bc658906b (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>
(cherry picked from commit 73a2d87e5034fb19ca30d6162b652e6a92ca855b)
-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 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() |