From: Yuval Lifshitz Date: Sun, 2 Jul 2023 11:23:09 +0000 (+0000) Subject: rgw/lua: allow passing tenant without uid to manage lua scripts X-Git-Tag: v19.0.0~804^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F52596%2Fhead;p=ceph.git rgw/lua: allow passing tenant without uid to manage lua scripts Fixes: https://tracker.ceph.com/issues/61868 Signed-off-by: Yuval Lifshitz --- 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; }