From 01582e227d647462a94cfb4fe849dd912622291a Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Mon, 23 Jul 2018 15:47:12 -0400 Subject: [PATCH] And then add real output to the status command. (cherry picked from commit eb0939d9671c99672f725fceff836ba07bff2df5) --- src/composer/cli/status.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/composer/cli/status.py b/src/composer/cli/status.py index b74e6237..640a23a0 100644 --- a/src/composer/cli/status.py +++ b/src/composer/cli/status.py @@ -42,4 +42,16 @@ def status_cmd(opts): print(json.dumps(result, indent=4)) 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