diff options
author | 2017-07-02 21:28:48 +0500 | |
---|---|---|
committer | 2017-07-02 21:49:48 +0500 | |
commit | a229cba7fb4d4f33e81effc5c561c1bf5a4efeb4 (patch) | |
tree | d6dbe8d1aa11797b34776a6e42d46d284172eb15 /rest_server.py | |
parent | 2c95b01efa53c7e7d4ea7d73fde0da6099938e50 (diff) |
Bugfix: Stack creation failure
JIRA: STORPERF-180
Change-Id: I07c38227b27b8e6148117a9907d43baeba4c67bb
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Diffstat (limited to 'rest_server.py')
-rw-r--r-- | rest_server.py | 3 |
1 files changed, 2 insertions, 1 deletions
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, |