Skip to content

Commit

Permalink
Merge pull request #56919 from afreen23/wip-fix-rgw-role-page
Browse files Browse the repository at this point in the history
mgr/dashboard: Support Description and AccountId in rgw roles

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
  • Loading branch information
ivoalmeida committed Apr 17, 2024
2 parents 6422241 + bfa85ec commit 205c679
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pybind/mgr/dashboard/controllers/rgw.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,12 @@ def model(role_name: str):
"MaxSessionDuration": {'cellTemplate': 'duration'},
"RoleId": {'isHidden': True},
"AssumeRolePolicyDocument": {'isHidden': True},
"PermissionPolicies": {'isHidden': True}
"PermissionPolicies": {'isHidden': True},
"Description": {'isHidden': True},
"AccountId": {'isHidden': True}
},
detail_columns=['RoleId', 'AssumeRolePolicyDocument', 'PermissionPolicies'],
detail_columns=['RoleId', 'Description',
'AssumeRolePolicyDocument', 'PermissionPolicies', 'AccountId'],
meta=CRUDMeta()
)
class RgwUserRole(NamedTuple):
Expand All @@ -872,6 +875,8 @@ class RgwUserRole(NamedTuple):
MaxSessionDuration: int
AssumeRolePolicyDocument: str
PermissionPolicies: List
Description: str
AccountId: str


@APIRouter('/rgw/realm', Scope.RGW)
Expand Down

0 comments on commit 205c679

Please sign in to comment.