S3Packer now takes a URL as endpoint, not a hostname

This commit is contained in:
Sybren A. Stüvel
2018-03-20 16:36:29 +01:00
parent c4a57039f1
commit 56fb89da3d
3 changed files with 20 additions and 11 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ def create_s3packer(bpath, ppath, tpath) -> pack.Packer:
# Split the target path into 's3:/', hostname, and actual target path
parts = tpath.parts
endpoint = parts[1]
endpoint = 'https://%s/' % parts[1]
tpath = pathlib.Path(*tpath.parts[2:])
log.info('Uploading to S3-compatible storage %s at %s', endpoint, tpath)