Compare commits

..

2 Commits

Author SHA1 Message Date
Taylor McKinnon 28ce3e5a3c bf(UTAPI-100): Bump version 2024-05-16 15:29:05 -07:00
Taylor McKinnon 6775c41bc7 bf(UTAPI-100): Remove use of 3.7+ only parameter 2024-05-16 15:28:32 -07:00
2 changed files with 3 additions and 4 deletions

View File

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

View File

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