Skip to content

Commit

Permalink
Merge pull request #22135 from tchaikov/mimic-24175
Browse files Browse the repository at this point in the history
mimic: mgr/status: output to stdout, not stderr

Reviewed-by: John Spray <john.spray@redhat.com>
  • Loading branch information
liewegas committed May 24, 2018
2 parents bc5d452 + 15ea856 commit 741576d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pybind/mgr/status/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def handle_fs_status(self, cmd):
])
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'])
Expand Down Expand Up @@ -301,7 +301,7 @@ def handle_osd_status(self, cmd):
','.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")
Expand Down

0 comments on commit 741576d

Please sign in to comment.