mgr: fix "access denied" message

As pointed out on https://github.com/ceph/ceph/pull/18716

Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2017-12-14 11:41:02 +00:00
parent d45db4e68c
commit 3283ed5883

View File

@ -726,7 +726,7 @@ bool DaemonServer::handle_command(MCommand *m)
audit_clog->info() << "from='" << session->inst << "' "
<< "entity='" << session->entity_name << "' "
<< "cmd=" << m->cmd << ": access denied";
ss << "access denied' does your client key have mgr caps? "
ss << "access denied: does your client key have mgr caps? "
"See http://docs.ceph.com/docs/master/mgr/administrator/"
"#client-authentication";
cmdctx->reply(-EACCES, ss);