From 879a9e8daa2c36425a17dc82b297e79efb61373e Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Tue, 2 Mar 2021 13:41:08 +0200 Subject: [PATCH] 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) --- src/rgw/rgw_rest_pubsub.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rest_pubsub.cc b/src/rgw/rgw_rest_pubsub.cc index 17a75be0674..01eb480778c 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; -- 2.47.3