]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: Notify user that 'tell' can't be used in interactive mode 6329/head
authorDavid Zafman <dzafman@redhat.com>
Wed, 21 Oct 2015 01:10:39 +0000 (18:10 -0700)
committerDavid Zafman <dzafman@redhat.com>
Fri, 30 Oct 2015 23:14:09 +0000 (16:14 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/ceph.in

index 487ff8486c8d2fd1848d0be3272583bac6bdbcd8..098bca19c524dd2b7300de8cb0539cd55735186b 100755 (executable)
@@ -420,6 +420,10 @@ def new_style_command(parsed_args, cmdargs, target, sigdict, inbuf, verbose):
                     print >> sys.stderr, \
                             'error handling command target: {0}'.format(e)
                     continue
+                if len(cmdargs) and cmdargs[0] == 'tell':
+                    print >> sys.stderr, \
+                          'Can not use \'tell\' in interactive mode.'
+                    continue
                 valid_dict = validate_command(sigdict, cmdargs, verbose)
                 if valid_dict:
                     if parsed_args.output_format: