summaryrefslogtreecommitdiffstats
path: root/rest_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_server.py')
-rw-r--r--rest_server.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rest_server.py b/rest_server.py
index 390cb8c..2b5bbfb 100644
--- a/rest_server.py
+++ b/rest_server.py
@@ -7,9 +7,6 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-from storperf.db.job_db import JobDB
-from storperf.plot.barchart import Barchart
-from storperf.storperf_master import StorPerfMaster
import io
import json
import logging
@@ -20,6 +17,10 @@ from flask import abort, Flask, request, jsonify, send_from_directory
from flask_restful import Resource, Api, fields
from flask_restful_swagger import swagger
+from storperf.db.job_db import JobDB
+from storperf.plot.barchart import Barchart
+from storperf.storperf_master import StorPerfMaster
+
app = Flask(__name__, static_url_path="")
api = swagger.docs(Api(app), apiVersion='1.0')
@@ -191,7 +192,6 @@ class Configure(Resource):
if ('volume_size' in request.json):
storperf.volume_size = request.json['volume_size']
- storperf.validate_stack()
storperf.create_stack()
return jsonify({'agent_count': storperf.agent_count,