And then add real output to the status command.

(cherry picked from commit eb0939d967)
This commit is contained in:
Chris Lumens 2018-07-23 15:47:12 -04:00
parent 80e2e8e6db
commit 01582e227d

View File

@ -42,4 +42,16 @@ def status_cmd(opts):
print(json.dumps(result, indent=4)) print(json.dumps(result, indent=4))
return 0 return 0
print("API server status:")
print(" Database version: " + result["db_version"])
print(" Database supported: %s" % result["db_supported"])
print(" Schema version: " + result["schema_version"])
print(" API version: " + result["api"])
print(" Backend: " + result["backend"])
print(" Build: " + result["build"])
if result["msgs"]:
print("Error messages:")
print("\n".join([" " + r for r in result["msgs"]]))
return 0 return 0