]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: allow tenant without user id for reshard commands 19050/head
authorOrit Wasserman <owasserm@redhat.com>
Wed, 8 Nov 2017 10:01:38 +0000 (12:01 +0200)
committerShinobu Kinjo <shinobu@redhat.com>
Mon, 20 Nov 2017 20:03:23 +0000 (05:03 +0900)
Fixes: http://tracker.ceph.com/issues/22046
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
(cherry picked from commit 0a2142e83b58fa8e238bcb748d1cb97bdba674c5)

src/rgw/rgw_admin.cc

index bd770160710c169d7e17c2b6c50ff5b05b39acd2..99d844c925157223f3ca8d1c23dec4136c9ab971 100644 (file)
@@ -2856,7 +2856,10 @@ int main(int argc, const char **argv)
                           && opt_cmd != OPT_ROLE_POLICY_PUT
                           && opt_cmd != OPT_ROLE_POLICY_LIST
                           && opt_cmd != OPT_ROLE_POLICY_GET
-                          && opt_cmd != OPT_ROLE_POLICY_DELETE) {
+                          && opt_cmd != OPT_ROLE_POLICY_DELETE
+                          && opt_cmd != OPT_RESHARD_ADD
+                          && opt_cmd != OPT_RESHARD_CANCEL
+                          && opt_cmd != OPT_RESHARD_STATUS) {
         cerr << "ERROR: --tenant is set, but there's no user ID" << std::endl;
         return EINVAL;
       }