]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: print more detailed warning for 'ceph <type> tell' 5249/head
authorKefu Chai <kchai@redhat.com>
Wed, 15 Jul 2015 11:03:33 +0000 (19:03 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 15 Jul 2015 11:06:17 +0000 (19:06 +0800)
put the full signature of "tell <target> <command> [options...]"
instead of "tell {0}.<id>", which could be misleading somehow.

Fixes: 11101
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph.in

index 7ee4e4a92ab86d9f41dd41c46d5fffce66ca5178..f55f8c7df17b5588eeebdb230baa648a1e8687da 100755 (executable)
@@ -654,7 +654,7 @@ def main():
     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])
+        print >> sys.stderr, '"{0} tell" is deprecated; try "tell {0}.<id> <command> [options...]" instead (id can be "*") '.format(childargs[0])
         return 1
 
     if childargs in [['mon'], ['osd']]: