]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw-check-policy: remove check for nonempty tenant 54213/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 26 Oct 2023 15:17:40 +0000 (11:17 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 26 Oct 2023 15:22:37 +0000 (11:22 -0400)
the tool should be usable with the default empty tenant to check
principals like `arn:aws:iam:::user/my-user-id`

Fixes: https://tracker.ceph.com/issues/63333
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_polparser.cc

index eca5066b3ce3cafe412bbe2ee5014ff600189f9c..c26862478e9b43ecf2fa4496870a13d3a107a8e1 100644 (file)
@@ -78,11 +78,6 @@ int main(int argc, const char** argv)
     }
   }
 
-  if (tenant.empty()) {
-    std::cerr << cmdname << ": must specify tenant name" << std::endl;
-    helpful_exit(cmdname);
-  }
-
   bool success = true;
 
   if (args.empty()) {