We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fff8c2 commit 2658be8Copy full SHA for 2658be8
b2sdk/v2/session.py
@@ -87,10 +87,9 @@ def upload_file(
87
88
def _construct_allowed_dict(self, storage_api_info):
89
return {
90
- 'bucketId': storage_api_info['bucketId'],
91
- 'bucketName': storage_api_info['bucketName'],
92
- 'capabilities': storage_api_info['capabilities'],
93
- 'namePrefix': storage_api_info['namePrefix'],
+ 'buckets': [
+ {'id': storage_api_info['bucketId'], 'name': storage_api_info['bucketName']}
+ ]
94
}
95
96
def _get_allowed_buckets_message(self, allowed) -> str | None:
0 commit comments