diff --git a/tes/apiendpoints.py b/tes/apiendpoints.py
index 6878d2f5450c6e0e68de0b915de36364871c81c0..09fe73edcc7b177b24f19613872ba7fce4b9fda8 100644
--- a/tes/apiendpoints.py
+++ b/tes/apiendpoints.py
@@ -261,6 +261,7 @@ class JobStat(Resource):
             return apiabort(400, message="Missing required parameter {}\n{}".format(e,traceback.format_exc()))
 
         rv = wrap_execute(sshsess, host=host, user=user, cmd=cmd)
+        return rv
 
 class MkDir(Resource):
     def post(self):