]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: Notify user that 'tell' can't be used in interactive mode 7656/head
authorDavid Zafman <dzafman@redhat.com>
Wed, 21 Oct 2015 01:10:39 +0000 (18:10 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 15 Feb 2016 21:04:42 +0000 (13:04 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit a341d977d42a3010267b64e15cebae3085507297)

Conflicts:
src/ceph.in (trivial resolution)

src/ceph.in

index 9f857ec6124617a5f48eb03101626ef0070f878e..54140126e3cd606395be180fb010bccd1e9f8f10 100755 (executable)
@@ -447,6 +447,10 @@ def new_style_command(parsed_args, cmdargs, target, sigdict, inbuf, verbose):
                     print >> sys.stderr, \
                             'error handling command target: {0}'.format(e)
                     return 1, '', ''
+                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: