]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/lua: pass correct value to "toplevel" param 46617/head
authoryuval Lifshitz <ylifshit@redhat.com>
Thu, 9 Jun 2022 19:51:50 +0000 (22:51 +0300)
committeryuval Lifshitz <ylifshit@redhat.com>
Thu, 9 Jun 2022 19:51:50 +0000 (22:51 +0300)
Fixes: https://tracker.ceph.com/issues/55978
Signed-off-by: yuval Lifshitz <ylifshit@redhat.com>
src/rgw/rgw_lua_request.cc

index 432643999b22f457296010ba43f20d2526c814c0..58baa48b70e7945f89bf4ea26a50c4d67c4d7e80 100644 (file)
@@ -494,7 +494,7 @@ struct PolicyMetaTable : public EmptyMetaTable {
         pushstring(L, policy->id.get());
       }
     } else if (strcasecmp(index, "Statements") == 0) {
-      create_metatable<StatementsMetaTable>(L, &(policy->statements));
+      create_metatable<StatementsMetaTable>(L, false, &(policy->statements));
     } else {
       return error_unknown_field(L, index, TableName());
     }