]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/cloudtier: Fix bug with decoding tier_targets
authorSoumya Koduri <skoduri@redhat.com>
Wed, 19 Apr 2023 11:14:24 +0000 (16:44 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Mon, 1 May 2023 14:00:58 +0000 (19:30 +0530)
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
src/rgw/rgw_zone.cc

index a45862fca37e5bdb5704de54eb711b37939c6de0..b743689edc0d08cfcb1a1f9139c06a2dbac7c1d4 100644 (file)
@@ -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