Adding the missing healthcheck 19/38619/1
authorDileep Ranganathan <dileep.ranganathan@intel.com>
Mon, 26 Mar 2018 10:47:18 +0000 (03:47 -0700)
committerDileep Ranganathan <dileep.ranganathan@intel.com>
Mon, 26 Mar 2018 10:47:18 +0000 (03:47 -0700)
Adding the missing healthcheck from previous commit.

Change-Id: I443dff8a22ea641bcbdfc4e8aa73ba5557d3259f
Issue-ID: OPTFRA-22
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
osdfapp.py

index 348a88c..775bb07 100755 (executable)
@@ -93,6 +93,12 @@ def handle_data_error(e):
     return response
 
 
+@app.route("/api/oof/v1/healthcheck", methods=["GET"])
+def do_osdf_health_check():
+    """Simple health check"""
+    return "OK"
+
+
 @app.route("/api/oof/v1/placement", methods=["POST"])
 @auth_basic.login_required
 def do_placement_opt():