Skip to content

Commit 96c993f

Browse files
committed
chore: find organization by name
1 parent 11ae14c commit 96c993f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/buckets_management.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
The Bucket API uses as a parameter the Organization ID. We have to retrieve ID by Organization API.
1818
"""
1919
org_name = "my-org"
20-
org = list(filter(lambda it: it.name == org_name, client.organizations_api().find_organizations()))[0]
20+
org = client.organizations_api().find_organizations(org=org_name)[0]
2121

2222
"""
2323
Create Bucket with retention policy set to 3600 seconds and name "bucket-by-python"

0 commit comments

Comments
 (0)