Skip to content

Commit b0a1752

Browse files
authored
Merge pull request #158 from TeskaLabs/fix/resource-renaming
Renaming resources without description
2 parents a3eb9a8 + 73b9c5d commit b0a1752

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Efficient count in MongoDB credential provider (#150, PLUM Sprint 230127)
99
- Fix sync method in Batman module (3c68cb8, PLUM Sprint 230210)
1010
- Fix cookie client session flow (#155, PLUM Sprint 230210)
11+
- Renaming resources without description (#158, PLUM Sprint 230210)
1112

1213
### Features
1314
- Allow unsetting some client features (#148, PLUM Sprint 230113)

seacatauth/authz/resource/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ async def rename(self, resource_id: str, new_resource_id: str):
207207
role_svc = self.App.get_service("seacatauth.RoleService")
208208

209209
resource = await self.get(resource_id)
210-
await self.create(new_resource_id, resource["description"])
210+
await self.create(new_resource_id, resource.get("description"))
211211

212212
roles = await role_svc.list(resource=resource_id)
213213
if roles["count"] > 0:

0 commit comments

Comments
 (0)