projects
/
ceph.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc7f744
)
ceph.in: handle unknown Exception correctly
4776/head
author
Kefu Chai
<kchai@redhat.com>
Fri, 24 Apr 2015 06:04:30 +0000
(14:04 +0800)
committer
Kefu Chai
<kchai@redhat.com>
Wed, 27 May 2015 04:20:47 +0000
(12:20 +0800)
* in case parse_cmdargs() throws
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
7789eefc01deb9ca7fe90f5521aece3e36c3c350
)
src/ceph.in
patch
|
blob
|
history
diff --git
a/src/ceph.in
b/src/ceph.in
index 8de12324655cb9a2d4b68c95c6731585d77fb91b..2b6adf4dc579a43bed4ae60bccc832f579e49e06 100755
(executable)
--- a/
src/ceph.in
+++ b/
src/ceph.in
@@
-446,7
+446,7
@@
def new_style_command(parsed_args, cmdargs, target, sigdict, inbuf, verbose):
except Exception as e:
print >> sys.stderr, \
'error handling command target: {0}'.format(e)
- return 1
+ return 1
, '', ''
valid_dict = validate_command(sigdict, cmdargs, verbose)
if valid_dict:
if parsed_args.output_format: