From: Casey Bodley Date: Thu, 26 Oct 2023 15:17:40 +0000 (-0400) Subject: rgw-check-policy: remove check for nonempty tenant X-Git-Tag: v19.0.0~158^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e5abcc6e0865acf7faa8aaa1235b977016d9f7cd;p=ceph.git rgw-check-policy: remove check for nonempty tenant 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 --- diff --git a/src/rgw/rgw_polparser.cc b/src/rgw/rgw_polparser.cc index eca5066b3ce3..c26862478e9b 100644 --- a/src/rgw/rgw_polparser.cc +++ b/src/rgw/rgw_polparser.cc @@ -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()) {