diff --git a/src/rgw/rgw_sync_module_pubsub_rest.cc b/src/rgw/rgw_sync_module_pubsub_rest.cc index 5b5392cbde5..15b7bf5411d 100644 --- a/src/rgw/rgw_sync_module_pubsub_rest.cc +++ b/src/rgw/rgw_sync_module_pubsub_rest.cc @@ -311,7 +311,11 @@ public: return -EINVAL; } + auto psmodule = static_cast(store->get_sync_module().get()); + auto conf = psmodule->get_effective_conf(); + dest.push_endpoint = s->info.args.get("push-endpoint"); + dest.bucket_name = string(conf["data_bucket_prefix"]) + s->owner.get_id().to_str() + "-" + topic_name; return 0; }