From b77272a3cd1d6d132f311a156285ed61a087a0aa Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Sun, 2 Jul 2023 11:23:09 +0000 Subject: [PATCH] rgw/lua: allow passing tenant without uid to manage lua scripts Fixes: https://tracker.ceph.com/issues/61868 Signed-off-by: Yuval Lifshitz --- src/rgw/rgw_admin.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 9b135b05c9a2..b57b98dad4c6 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -4294,7 +4294,10 @@ int main(int argc, const char **argv) && opt_cmd != OPT::PUBSUB_NOTIFICATION_GET && opt_cmd != OPT::PUBSUB_TOPIC_RM && opt_cmd != OPT::PUBSUB_NOTIFICATION_RM - && opt_cmd != OPT::PUBSUB_TOPIC_STATS ) { + && opt_cmd != OPT::PUBSUB_TOPIC_STATS + && opt_cmd != OPT::SCRIPT_PUT + && opt_cmd != OPT::SCRIPT_GET + && opt_cmd != OPT::SCRIPT_RM) { cerr << "ERROR: --tenant is set, but there's no user ID" << std::endl; return EINVAL; } -- 2.47.3