From 618731f14bbf43e93c405111871dcebe473cdb99 Mon Sep 17 00:00:00 2001 From: Pritha Srivastava Date: Fri, 5 Jun 2020 09:30:49 +0530 Subject: [PATCH] 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) --- src/rgw/rgw_rest_role.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rest_role.cc b/src/rgw/rgw_rest_role.cc index 7dc772c3f670f..dbcb718d67959 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(); } -- 2.39.5