]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
MonCommands.h: auth add doesn't require caps (it can use -i <file>)
authorDan Mick <dan.mick@inktank.com>
Wed, 26 Jun 2013 22:31:25 +0000 (15:31 -0700)
committerDan Mick <dan.mick@inktank.com>
Wed, 26 Jun 2013 23:18:47 +0000 (16:18 -0700)
This was a regression from the old behavior introduced by the
CLI rewrite.

Fixes: #5467
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
src/mon/MonCommands.h

index e1ebf31df6ce07834a0192ed00fd35e350b5649a..0f5f4096f12ba6509a2dc1cc820efc76d7c7cbec 100644 (file)
@@ -140,7 +140,7 @@ COMMAND("auth list", "list authentication state")
 COMMAND("auth import", "auth import: read keyring file from input")
 COMMAND("auth add " \
        "name=entity,type=CephString " \
-       "name=caps,type=CephString,n=N", \
+       "name=caps,type=CephString,n=N,req=false", \
        "add auth info for <entity> from input file, or random key if no input given, and/or any caps specified in the command")
 COMMAND("auth get-or-create-key " \
        "name=entity,type=CephString " \