From: Dan Mick Date: Thu, 11 Jul 2013 05:56:42 +0000 (-0700) Subject: ceph.in: output even a blank status line in compat mode X-Git-Tag: v0.67-rc1~83^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cb0f831834ec9f3b38e5fbef87c1a9583e24f8bb;p=ceph.git ceph.in: output even a blank status line in compat mode Fixes: #5594 Signed-off-by: Dan Mick Reviewed-by: Sage Weil --- diff --git a/src/ceph.in b/src/ceph.in index 78dde742b3fb..a7f75c919974 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -710,11 +710,12 @@ def main(): return ret # this assumes outs never has useful command output, only status - if outs: - if compat and ret == 0: + if compat: + if ret == 0: # old cli/mon would send status string to stdout on non-error print outs - else: + else: + if outs: print >> sys.stderr, prefix + outs if (parsed_args.output_file):