]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: print more detailed warning for 'ceph <type> tell'
authorKefu Chai <kchai@redhat.com>
Wed, 15 Jul 2015 11:03:33 +0000 (19:03 +0800)
committerKen Dreyer <kdreyer@redhat.com>
Wed, 23 Sep 2015 20:37:39 +0000 (14:37 -0600)
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)
(cherry picked from commit e00494118ee42322784988fe56623cbc7aac4cc9)

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: