diff mbox series

fetch/s3: Fix number of format string arguments

Message ID 20260609132050.519370-1-nate@nexthop.ai
State Accepted, archived
Commit 917cd1067733cb8efa7f5ed327c88209cb137576
Headers show
Series fetch/s3: Fix number of format string arguments | expand

Commit Message

Nate White June 9, 2026, 1:20 p.m. UTC
basecmd was moved out of the format string args but was missed being
removed from the list of arguments resulting in a runtime error.

Remove the argument to fix this.

Signed-off-by: Nate White <nate@nexthop.ai>
---
 lib/bb/fetch2/s3.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/lib/bb/fetch2/s3.py b/lib/bb/fetch2/s3.py
index 059351014..fdd450429 100644
--- a/lib/bb/fetch2/s3.py
+++ b/lib/bb/fetch2/s3.py
@@ -88,7 +88,7 @@  class S3(FetchMethod):
         Assumes localpath was called first
         """
 
-        cmd = ud.basecmd + ['cp', 's3://%s%s' % (ud.basecmd, ud.host, ud.path), ud.localpath]
+        cmd = ud.basecmd + ['cp', 's3://%s%s' % (ud.host, ud.path), ud.localpath]
         bb.fetch2.check_network_access(d, cmd, ud.url)
 
         progresshandler = S3ProgressHandler(d)
@@ -112,7 +112,7 @@  class S3(FetchMethod):
         Check the status of a URL
         """
 
-        cmd = ud.basecmd + ['ls', 's3://%s%s' % (ud.basecmd, ud.host, ud.path)]
+        cmd = ud.basecmd + ['ls', 's3://%s%s' % (ud.host, ud.path)]
         bb.fetch2.check_network_access(d, cmd, ud.url)
         output = runfetchcmd(cmd, d)