From: Yuval Lifshitz Date: Tue, 2 Mar 2021 11:41:08 +0000 (+0200) Subject: rgw/notification: fixing the "persistent=false" flag X-Git-Tag: v16.2.6~75^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=879a9e8daa2c36425a17dc82b297e79efb61373e;p=ceph.git rgw/notification: fixing the "persistent=false" flag when setting "persistent=false" a non persistent topic should be created Fixes: https://tracker.ceph.com/issues/49552 Signed-off-by: Yuval Lifshitz (cherry picked from commit 9975472244ad054cb48c283a48ba6156e26dddde) --- diff --git a/src/rgw/rgw_rest_pubsub.cc b/src/rgw/rgw_rest_pubsub.cc index 17a75be0674a..01eb480778c7 100644 --- a/src/rgw/rgw_rest_pubsub.cc +++ b/src/rgw/rgw_rest_pubsub.cc @@ -38,7 +38,7 @@ public: opaque_data = s->info.args.get("OpaqueData"); dest.push_endpoint = s->info.args.get("push-endpoint"); - dest.persistent = s->info.args.exists("persistent"); + s->info.args.get_bool("persistent", &dest.persistent, false); if (!validate_and_update_endpoint_secret(dest, s->cct, *(s->info.env))) { return -EINVAL;