From fcc8d05d9676763d2cf9dd5f14a16e45fbec3fd9 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 25 Jul 2018 17:50:37 -0700 Subject: [PATCH] rgw: pubsub: create notif via REST api sets dest bucket This got lost somewhere in the refactoring work Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_sync_module_pubsub_rest.cc | 4 ++++ 1 file changed, 4 insertions(+) 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; }