duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] Automatically creating buckets with S3 storage


From: Andrew Beverley
Subject: Re: [Duplicity-talk] Automatically creating buckets with S3 storage
Date: Sun, 19 Jul 2015 13:16:40 +0100

On Sun, 2015-07-19 at 22:04 +1000, Scott McKenzie wrote:
> Hi Andrew

Hi Scott, thanks for the quick reply.

> create_bucket is called in the _boto_single.py backend when a NoSuchBucket
> exception is caught.

Ah, got it, that makes sense.

> Does the user accessing S3 have the s3:CreateBucket permission?

Yes, as I can create a bucket with the same credentials but using s3curl 
instead.

I've found the problem: resetConnection is being called at the end of __init__,
and that is calling get_bucket, but without the exception handling that put() 
has.
So, looks like the create_bucket exception handling should be in 
resetConnection()
instead of put() do you think?

Shall I raise a bug report or am I misunderstanding something?

Thanks,

Andy





reply via email to

[Prev in Thread] Current Thread [Next in Thread]