From: Yehuda Sadeh Date: Thu, 26 Jul 2018 00:50:37 +0000 (-0700) Subject: rgw: pubsub: create notif via REST api sets dest bucket X-Git-Tag: v14.1.0~616^2~32 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fcc8d05d9676763d2cf9dd5f14a16e45fbec3fd9;p=ceph.git rgw: pubsub: create notif via REST api sets dest bucket This got lost somewhere in the refactoring work Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_sync_module_pubsub_rest.cc b/src/rgw/rgw_sync_module_pubsub_rest.cc index 5b5392cbde56..15b7bf5411dd 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; }