Fix bad return from initialize call

This commit is contained in:
Joshua Boniface 2021-06-29 18:31:56 -04:00
parent ffdd6bf3f8
commit b05c93e260
1 changed files with 1 additions and 4 deletions

View File

@ -304,10 +304,7 @@ class API_Initialize(Resource):
else: else:
overwrite_flag = False overwrite_flag = False
if api_helper.initialize_cluster(overwrite=overwrite_flag): return api_helper.initialize_cluster(overwrite=overwrite_flag)
return {"message": "Successfully initialized a new PVC cluster"}, 200
else:
return {"message": "PVC cluster already initialized"}, 400
api.add_resource(API_Initialize, '/initialize') api.add_resource(API_Initialize, '/initialize')