diff options
author | Mark Beierl <mark.beierl@dell.com> | 2017-07-04 16:48:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-07-04 16:48:21 +0000 |
commit | 4717f39695e5ee2e4f64300b0226bf0da37c0534 (patch) | |
tree | 9b57edb53af5f476d52e346b56d687d7b39f9c86 /rest_server.py | |
parent | e7b94bbe52fdb0cdb5a95c5657a2e207580aca86 (diff) | |
parent | a229cba7fb4d4f33e81effc5c561c1bf5a4efeb4 (diff) |
Merge "Bugfix: Stack creation failure"
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 27a8453..f0e5fdd 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, |