From 77b4a3e1cfaa3c97176ff30e33a28055816f5087 Mon Sep 17 00:00:00 2001 From: Mackenzie Grimes - NOAA Affiliate <136493179+mackenzie-grimes-noaa@users.noreply.github.com> Date: Thu, 19 Sep 2024 15:10:18 -0600 Subject: [PATCH] bug: aws_cp optional args should not be ints (#76) * convert aws_cp optional args into str instead of int * --part-size, not --part_size --- python/idsse_common/idsse/common/aws_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/idsse_common/idsse/common/aws_utils.py b/python/idsse_common/idsse/common/aws_utils.py index 2646fc4..e54af6d 100644 --- a/python/idsse_common/idsse/common/aws_utils.py +++ b/python/idsse_common/idsse/common/aws_utils.py @@ -94,9 +94,9 @@ def aws_cp(self, # if concurrency and/or chunk_size options were provided, append to s5cmd before paths if concurrency: - commands += ['--concurrency', concurrency] + commands += ['--concurrency', str(concurrency)] if chunk_size: - commands += ['--part_size', chunk_size] + commands += ['--part-size', str(chunk_size)] commands += [path, dest] # finish the command list with the src and destination exec_cmd(commands)