From: Abhishek Lekshmanan Date: Tue, 20 Oct 2020 06:24:05 +0000 (+0200) Subject: rgw: role: json fixes X-Git-Tag: v17.2.6~119^2~29 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a8ebb227bd17bdaff94144274dae4b6155e64839;p=ceph.git rgw: role: json fixes Signed-off-by: Abhishek Lekshmanan (cherry picked from commit 93375dd04cfb265e0f76125732141d3e5423e05e) --- diff --git a/src/rgw/rgw_role.cc b/src/rgw/rgw_role.cc index 54f9359cf3aa..8892f52eb953 100644 --- a/src/rgw/rgw_role.cc +++ b/src/rgw/rgw_role.cc @@ -299,13 +299,13 @@ void RGWRole::dump(Formatter *f) const void RGWRole::decode_json(JSONObj *obj) { - JSONDecoder::decode_json("id", id, obj); - JSONDecoder::decode_json("name", name, obj); - JSONDecoder::decode_json("path", path, obj); - JSONDecoder::decode_json("arn", arn, obj); - JSONDecoder::decode_json("create_date", creation_date, obj); - JSONDecoder::decode_json("max_session_duration", max_session_duration, obj); - JSONDecoder::decode_json("assume_role_policy_document", trust_policy, obj); + JSONDecoder::decode_json("RoleId", id, obj); + JSONDecoder::decode_json("RoleName", name, obj); + JSONDecoder::decode_json("Path", path, obj); + JSONDecoder::decode_json("Arn", arn, obj); + JSONDecoder::decode_json("CreateDate", creation_date, obj); + JSONDecoder::decode_json("MaxSessionDuration", max_session_duration, obj); + JSONDecoder::decode_json("AssumeRolePolicyDocument", trust_policy, obj); } int RGWRole::read_id(const DoutPrefixProvider *dpp, const std::string& role_name, const std::string& tenant, std::string& role_id, optional_yield y)