Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding --skip-bucket-validation argument #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ Options
output plus request/response output from httplib.
--version show program's version number and exit
-h, --help show the help message and exit
--skip-bucket-validation
Sets validate=False when connecting to a bucket. Use
this option if you only have permission to the
sub-folder of a bucket (and not the entire bucket).


Advanced Configuration Options
Expand Down
7 changes: 6 additions & 1 deletion bin/boto-rsync
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ def main():
'-h', '--help', action='help',
help='show this help message and exit'
)
parser.add_argument(
'--skip-bucket-validation', action='store_false', dest='validate_bucket',
help='Sets validate=False when connecting to a bucket.'
)
parser.add_argument('SOURCE', help=argparse.SUPPRESS)
parser.add_argument('DESTINATION', help=argparse.SUPPRESS)

Expand Down Expand Up @@ -329,6 +333,7 @@ def main():
no_op = args.no_op
quiet = args.quiet
debug = args.debug
validate_bucket = args.validate_bucket
source = args.SOURCE
dest = args.DESTINATION
except:
Expand Down Expand Up @@ -421,7 +426,7 @@ def main():
aws_secret_access_key=cloud_secret_access_key,
host=endpoint)
c.debug = debug
b = c.get_bucket(cloud_bucket)
b = c.get_bucket(cloud_bucket, validate=validate_bucket)
if xfer_type in ['sync']:
b2 = c.get_bucket(cloud_dest_bucket)

Expand Down