]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw : modify error message when user info by access-key 44399/head
authorcao.leilc <cao.leilc@inspur.com>
Fri, 24 Dec 2021 06:17:24 +0000 (14:17 +0800)
committercao.leilc <cao.leilc@inspur.com>
Fri, 24 Dec 2021 06:17:24 +0000 (14:17 +0800)
Fixes: https://tracker.ceph.com/issues/53727
Signed-off-by: caolei <halei15848934852@163.com>
src/rgw/rgw_user.cc

index e475a16e50d7dca7569b5c27f950d36f29372200..5f02aece696ef2e59d19e76e5149cff8e4f7cd2b 100644 (file)
@@ -358,7 +358,7 @@ int RGWAccessKeyPool::init(RGWUserAdminOpState& op_state)
   const rgw_user& uid = op_state.get_user_id();
   if (uid.compare(RGW_USER_ANON_ID) == 0) {
     keys_allowed = false;
-    return -EACCES;
+    return -EINVAL;
   }
 
   swift_keys = op_state.get_swift_keys();