]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: Get canonical storage class when storage class is empty in
authorzhangzhiming <zhangzhm1@chinatelecom.cn>
Fri, 14 Jan 2022 03:28:52 +0000 (11:28 +0800)
committerzhangzhiming <zhangzhm1@chinatelecom.cn>
Fri, 14 Jan 2022 03:28:52 +0000 (11:28 +0800)
lifecycle configuration.

Fixes: https://tracker.ceph.com/issues/53878
Signed-off-by: zhiming zhang <zhangzhm1@chinatelecom.cn>
src/rgw/rgw_lc.cc

index ea1609bdb9d4f14d28068c9732202f4f07acb974..6d5ce00289115408fec5e16007a06729bba935f0 100644 (file)
@@ -141,7 +141,8 @@ bool RGWLifecycleConfiguration::_add_rule(const LCRule& rule)
     transition_action action;
     action.days = elem.second.get_days();
     action.date = ceph::from_iso_8601(elem.second.get_date());
-    action.storage_class = elem.first;
+    action.storage_class
+      = rgw_placement_rule::get_canonical_storage_class(elem.first);
     op.noncur_transitions.emplace(elem.first, std::move(action));
   }
   std::string prefix;