]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: pass --format=foo to old monitors
authorSage Weil <sage@inktank.com>
Sat, 15 Jun 2013 00:30:02 +0000 (17:30 -0700)
committerSage Weil <sage@inktank.com>
Sat, 15 Jun 2013 00:30:57 +0000 (17:30 -0700)
And --threshold too, although.. really.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviwed-by: Dan Mick <dan.mick@inktank.com>
src/ceph.in

index 16155c9b31165fa99842324bfb36199bb435cb2e..69608021f9b23c6a19c36526e647185cb22f87f6 100755 (executable)
@@ -1577,6 +1577,10 @@ def main():
             if verbose:
                 print prefix, '{0} to old {1}'.format(' '.join(childargs), target[0])
             compat = True
+            if parsed_args.output_format:
+                childargs.extend(['--format', parsed_args.output_format])
+            if parsed_args.threshold:
+                childargs.extend(['--threshold', parsed_args.threshold])
             ret, outbuf, outs = send_command(target, childargs, inbuf)
             # combine nonerror outbuf and outs; either may have cmd output
             if ret == 0: