diff options
author | Dan Mick <dan.mick@inktank.com> | 2013-06-14 16:51:40 -0700 |
---|---|---|
committer | Dan Mick <dan.mick@inktank.com> | 2013-06-14 16:52:33 -0700 |
commit | bb5fae4a5c7a130142d6d39f8f859fe60325ad3d (patch) | |
tree | 76d891ea6e10187ee5a178c1ee2970f4d2053319 | |
parent | 3474fa8361144370bac7f69293c6ebf6d11b9116 (diff) | |
download | ceph-bb5fae4a5c7a130142d6d39f8f859fe60325ad3d.tar.gz |
ceph.in: zero-arg invocation was broken (check array length)
Also remove stray comment char
Signed-off-by: Dan Mick <dan.mick@inktank.com>
-rwxr-xr-x | src/ceph.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ceph.in b/src/ceph.in index 4fc5ab3eed7..a0a1bb975ab 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -1,4 +1,4 @@ -#& +# # Processed in Makefile to add python #! line and version variable # # @@ -1544,7 +1544,7 @@ def main(): # Repulsive hack to handle tell: lop off 'tell' and target # and validate the rest of the command. 'target' is already # determined in our callers, so it's ok to remove it here. - if childargs[0] == 'tell': + if len(childargs) and childargs[0] == 'tell': childargs = childargs[2:] # fetch JSON sigs from command |