From 5071cb6c63225942bb9aba35ddd0456735fc57f9 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Wed, 19 Apr 2023 16:44:24 +0530 Subject: [PATCH] rgw/cloudtier: Fix bug with decoding tier_targets Signed-off-by: Soumya Koduri (cherry picked from commit e33946b89ee9a3c61f0c4e08597f67b42ca4850b) --- src/rgw/rgw_zone.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rgw/rgw_zone.cc b/src/rgw/rgw_zone.cc index a45862fca37e5..b743689edc0d0 100644 --- a/src/rgw/rgw_zone.cc +++ b/src/rgw/rgw_zone.cc @@ -755,9 +755,7 @@ void RGWZoneGroupPlacementTarget::decode_json(JSONObj *obj) if (storage_classes.empty()) { storage_classes.insert(RGW_STORAGE_CLASS_STANDARD); } - if (!tier_targets.empty()) { - JSONDecoder::decode_json("tier_targets", tier_targets, obj); - } + JSONDecoder::decode_json("tier_targets", tier_targets, obj); } void RGWZonePlacementInfo::dump(Formatter *f) const -- 2.39.5