if (prefix == "auth import") {
bufferlist bl = m->get_data();
+ if (bl.length() == 0) {
+ ss << "auth import: no data supplied";
+ getline(ss, rs);
+ mon->reply_command(m, -EINVAL, rs, get_last_committed());
+ return true;
+ }
bufferlist::iterator iter = bl.begin();
KeyRing keyring;
try {
COMMAND("auth print_key name=entity,type=CephString", "display requested key", \
"auth", "r", "cli,rest")
COMMAND("auth list", "list authentication state", "auth", "r", "cli,rest")
-COMMAND("auth import", "auth import: read keyring file from input", \
+COMMAND("auth import", "auth import: read keyring file from -i <file>", \
"auth", "rw", "cli,rest")
COMMAND("auth add " \
"name=entity,type=CephString " \