From 4aea30bae72de3f89f7777a9b8dfe8b93a0448b2 Mon Sep 17 00:00:00 2001 From: Devaraj Ranganna Date: Tue, 8 Oct 2024 12:43:51 +0000 Subject: [PATCH] ci: Update `s3.list_buckets` parameter name With latest version of `boto`, `s3.list_buckets` API expects `ContinuationToken` instead of `nextToken`. Signed-off-by: Devaraj Ranganna --- tools/ci/aws_cleanup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ci/aws_cleanup.py b/tools/ci/aws_cleanup.py index 16b7dd29..f6ba04c6 100644 --- a/tools/ci/aws_cleanup.py +++ b/tools/ci/aws_cleanup.py @@ -1,4 +1,4 @@ -# Copyright 2023 Arm Limited and/or its affiliates +# Copyright 2023-2024 Arm Limited and/or its affiliates # # SPDX-License-Identifier: MIT @@ -137,7 +137,7 @@ def process_things(nextToken: str) -> str: def process_buckets(nextToken: str) -> str: - response = s3.list_buckets(nextToken=nextToken) + response = s3.list_buckets(ContinuationToken=nextToken) for bucket in response["Buckets"]: bucket_name: str = bucket["Name"]