From e4f9dce7a5d1055115a065c3b2677cc65fcef6de Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Thu, 13 Jun 2013 15:48:32 -0700 Subject: [PATCH] ceph.in: refuse 'ceph tell' commands; suggest 'ceph tell ' Signed-off-by: Dan Mick Reviewed-by: Sage Weil --- src/ceph.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ceph.in b/src/ceph.in index dcb120931ca62..a650400687031 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -1,4 +1,4 @@ -# +#& # Processed in Makefile to add python #! line and version variable # # @@ -1454,6 +1454,14 @@ def main(): if '--' in childargs: childargs.remove('--') + # special deprecation warning for 'ceph tell' + # someday 'mds' will be here too + if len(childargs) >= 2 and \ + childargs[0] in ['mon', 'osd'] and \ + childargs[1] == 'tell': + print >> sys.stderr, '"{0} tell" is deprecated; try "tell {0}." instead (id can be "*") '.format(childargs[0]) + return 1 + try: cluster_handle.connect() except KeyboardInterrupt: -- 2.39.5