From: Pritha Srivastava Date: Fri, 5 Jun 2020 04:00:49 +0000 (+0530) Subject: rgw/iam: correcting the result of get role policy. X-Git-Tag: v15.2.5~53^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36645%2Fhead;p=ceph.git rgw/iam: correcting the result of get role policy. Fixes: https://tracker.ceph.com/issues/45671 Signed-off-by: Pritha Srivastava (cherry picked from commit 9e1ae9de9905587a227e50d0aff6533e290a8f87) --- diff --git a/src/rgw/rgw_rest_role.cc b/src/rgw/rgw_rest_role.cc index 17c8e2b5d66a..cb3b2c8566bd 100644 --- a/src/rgw/rgw_rest_role.cc +++ b/src/rgw/rgw_rest_role.cc @@ -414,7 +414,7 @@ void RGWGetRolePolicy::execute() s->formatter->open_object_section("GetRolePolicyResult"); s->formatter->dump_string("PolicyName", policy_name); s->formatter->dump_string("RoleName", role_name); - s->formatter->dump_string("Permission policy", perm_policy); + s->formatter->dump_string("PolicyDocument", perm_policy); s->formatter->close_section(); s->formatter->close_section(); }