Compare commits

..

No commits in common. "28ce3e5a3c7ec4dd9957d052c10274f7b273a186" and "438a25982dbf784378fcba44395c1d18a17a1fad" have entirely different histories.

2 changed files with 4 additions and 3 deletions

View File

@ -50,7 +50,7 @@ def _encoded(func):
return urllib.parse.quote(val.encode('utf-8'))
return inner
Bucket = namedtuple('Bucket', ['userid', 'name', 'object_lock_enabled'])
Bucket = namedtuple('Bucket', ['userid', 'name', 'object_lock_enabled'], defaults=[False])
MPU = namedtuple('MPU', ['bucket', 'key', 'upload_id'])
BucketContents = namedtuple('BucketContents', ['bucket', 'obj_count', 'total_size'])
@ -178,7 +178,7 @@ class BucketDClient:
buckets = []
for result in payload.get('Contents', []):
match = re.match("(\w+)..\|..(\w+.*)", result['key'])
bucket = Bucket(*match.groups(), False)
bucket = Bucket(*match.groups())
if name is None or bucket.name == name:
# We need to get the attributes for each bucket to determine if it is locked
if self._only_latest_when_locked:

View File

@ -2,7 +2,8 @@
"name": "utapi",
"engines": {
"node": ">=16"
"version": "7.70.4",
},
"version": "7.70.3",
"description": "API for tracking resource utilization and reporting metrics",
"main": "index.js",
"repository": {