From 15ea85666e36182a7944910e31577da0e760df3c Mon Sep 17 00:00:00 2001 From: John Spray Date: Fri, 18 May 2018 16:44:34 +0100 Subject: [PATCH] mgr/status: output to stdout, not stderr I think this was just me forgetting the order of the arguments when writing the return statements. Fixes: http://tracker.ceph.com/issues/24175 Signed-off-by: John Spray (cherry picked from commit c18db575ca87906faa201c4d3bde75b99148d18f) --- src/pybind/mgr/status/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/status/module.py b/src/pybind/mgr/status/module.py index 5175625702563..b4a0f25e0af70 100644 --- a/src/pybind/mgr/status/module.py +++ b/src/pybind/mgr/status/module.py @@ -249,7 +249,7 @@ class Module(MgrModule): ]) output += version_table.get_string() + "\n" - return 0, "", output + return 0, output, "" def handle_osd_status(self, cmd): osd_table = PrettyTable(['id', 'host', 'used', 'avail', 'wr ops', 'wr data', 'rd ops', 'rd data', 'state']) @@ -301,7 +301,7 @@ class Module(MgrModule): ','.join(osd['state']), ]) - return 0, "", osd_table.get_string() + return 0, osd_table.get_string(), "" def handle_command(self, cmd): self.log.error("handle_command") -- 2.47.3