rgw: pubsub: create notif via REST api sets dest bucket

This got lost somewhere in the refactoring work

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
Yehuda Sadeh 2018-07-25 17:50:37 -07:00
parent eac1dcf228
commit fcc8d05d96

View File

@ -311,7 +311,11 @@ public:
return -EINVAL;
}
auto psmodule = static_cast<RGWPSSyncModuleInstance *>(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;
}