server: fix logging of file upload to awsbucket

Thanks to Adam Pritchard for reporting this
This commit is contained in:
Hans-Christoph Steiner 2014-04-23 19:55:53 -04:00
parent 21769e9f0a
commit a66bf2037c

View file

@ -97,7 +97,7 @@ def update_awsbucket(repo_section):
elif file_to_upload.endswith('.asc'): elif file_to_upload.endswith('.asc'):
extra['content_type'] = 'application/pgp-signature' extra['content_type'] = 'application/pgp-signature'
logging.info(' uploading ' + os.path.relpath(file_to_upload) logging.info(' uploading ' + os.path.relpath(file_to_upload)
+ ' to s3://' + awsbucket + '/' + obj.name) + ' to s3://' + awsbucket + '/' + object_name)
obj = driver.upload_object(file_path=file_to_upload, obj = driver.upload_object(file_path=file_to_upload,
container=container, container=container,
object_name=object_name, object_name=object_name,