summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Mick <dan.mick@inktank.com>2013-06-13 15:48:32 -0700
committerDan Mick <dan.mick@inktank.com>2013-06-13 15:56:52 -0700
commite4f9dce7a5d1055115a065c3b2677cc65fcef6de (patch)
tree718439f88e1c7c1e304f80ce22b336121ccc9b04
parenta6876ad7d949c9d9757e632f10d0bb3bcffddd0a (diff)
downloadceph-e4f9dce7a5d1055115a065c3b2677cc65fcef6de.tar.gz
ceph.in: refuse 'ceph <type> tell' commands; suggest 'ceph tell <type>'
Signed-off-by: Dan Mick <dan.mick@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
-rwxr-xr-xsrc/ceph.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ceph.in b/src/ceph.in
index dcb120931ca..a6504006870 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 <type> 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}.<id>" instead (id can be "*") '.format(childargs[0])
+ return 1
+
try:
cluster_handle.connect()
except KeyboardInterrupt: