From 93375dd04cfb265e0f76125732141d3e5423e05e Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Tue, 20 Oct 2020 08:24:05 +0200 Subject: [PATCH] rgw: role: json fixes Signed-off-by: Abhishek Lekshmanan --- src/rgw/rgw_role.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/rgw/rgw_role.cc b/src/rgw/rgw_role.cc index 54f9359cf3a..8892f52eb95 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) -- 2.39.5