]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: zero-arg invocation was broken (check array length)
authorDan Mick <dan.mick@inktank.com>
Fri, 14 Jun 2013 23:51:40 +0000 (16:51 -0700)
committerDan Mick <dan.mick@inktank.com>
Fri, 14 Jun 2013 23:52:33 +0000 (16:52 -0700)
Also remove stray comment char

Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/ceph.in

index 4fc5ab3eed78857ff6c3e60eac0d6e28479af048..a0a1bb975abff5116cb69f72a69b36bdd00894ba 100755 (executable)
@@ -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