From a229cba7fb4d4f33e81effc5c561c1bf5a4efeb4 Mon Sep 17 00:00:00 2001 From: Taseer Date: Sun, 2 Jul 2017 21:28:48 +0500 Subject: Bugfix: Stack creation failure JIRA: STORPERF-180 Change-Id: I07c38227b27b8e6148117a9907d43baeba4c67bb Signed-off-by: Taseer Ahmed --- rest_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rest_server.py b/rest_server.py index dcf6be5..9c27720 100644 --- a/rest_server.py +++ b/rest_server.py @@ -19,7 +19,6 @@ from flask_restful_swagger import swagger from flask_cors import CORS from storperf.storperf_master import StorPerfMaster - app = Flask(__name__, static_url_path="") CORS(app) api = swagger.docs(Api(app), apiVersion='1.0') @@ -105,6 +104,8 @@ class Configure(Resource): storperf.volume_size = request.json['volume_size'] storperf.create_stack() + if storperf.stack_id is None: + abort(400, "Stack creation failed") return jsonify({'agent_count': storperf.agent_count, 'agent_flavor': storperf.agent_flavor, -- cgit 1.2.3-korg