]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph: do not print status to output file when talking to old mons
authorSage Weil <sage@inktank.com>
Sun, 16 Jun 2013 20:36:19 +0000 (13:36 -0700)
committerSage Weil <sage@inktank.com>
Sun, 16 Jun 2013 20:36:19 +0000 (13:36 -0700)
commitefebdba0119f3ac361448924258e263e8c9dbdff
treeb65052383c630b7a78c4408bc18d6b4a72a43480
parent7e7ff7532d343c473178799e37f4b83cf29c4eee
ceph: do not print status to output file when talking to old mons

The old cli would send the status message to stdout instead of stderr;
we try to emulate that behavior when talking to old monitors because
they send some useful data to outs instead of the data payload.
However, when outputting to a *file*, the outs would still go to
stdout.  Maintain that so that, e.g.,

 ceph mon getmap -o /tmp/foo

doesn't prefix the monmap with 'got latest monmap\n'.

Signed-off-by: Sage Weil <sage@inktank.com>
src/ceph.in