]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: print more detailed warning for 'ceph <type> tell' 5371/head
authorKefu Chai <kchai@redhat.com>
Wed, 15 Jul 2015 11:03:33 +0000 (19:03 +0800)
committerLoic Dachary <ldachary@redhat.com>
Tue, 28 Jul 2015 12:56:53 +0000 (14:56 +0200)
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>
(cherry picked from commit aa1a5222eebd0256d4ecffb0eefeb0f78ecf0a1f)

src/ceph.in

index 4fc4a645e6cb1ed970115a3ae1a95ed08d8f65a0..e0227b75df8c0c5fe14a0616f244ed29a5da3e87 100755 (executable)
@@ -679,7 +679,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 parsed_args.help: