From 7546ca6d4deb3bd33f63af71ea6b23675bb55f67 Mon Sep 17 00:00:00 2001 From: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> Date: Tue, 7 Jan 2020 10:40:37 -0800 Subject: [PATCH] bugfix: Issue #14346, buildcache create s3 push fails when package w same DAG hash already exists at mirror (#14412) --- lib/spack/spack/util/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/util/web.py b/lib/spack/spack/util/web.py index ba3817bb5f..fbd4ea8c5a 100644 --- a/lib/spack/spack/util/web.py +++ b/lib/spack/spack/util/web.py @@ -263,7 +263,7 @@ def remove_url(url): if url.scheme == 's3': s3 = s3_util.create_s3_session(url) - s3.delete_object(Bucket=url.s3_bucket, Key=url.path) + s3.delete_object(Bucket=url.netloc, Key=url.path) return # Don't even try for other URL schemes.