]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/lua: allow passing tenant without uid to manage lua scripts 52596/head
authorYuval Lifshitz <ylifshit@ibm.com>
Sun, 2 Jul 2023 11:23:09 +0000 (11:23 +0000)
committerYuval Lifshitz <ylifshit@redhat.com>
Sun, 23 Jul 2023 15:25:40 +0000 (15:25 +0000)
Fixes: https://tracker.ceph.com/issues/61868
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
src/rgw/rgw_admin.cc

index 9b135b05c9a2517030f53dd011b1404b83fb91b2..b57b98dad4c639b6372fb8ebfb5eb963a7779757 100644 (file)
@@ -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;
       }