Skip to content

Commit ca3dbe0

Browse files
committed
Automatically use appropriate region for S3 bucket
1 parent 2d8560d commit ca3dbe0

File tree

2 files changed

+291
-189
lines changed

2 files changed

+291
-189
lines changed

src/AWSConfig.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ end
2424

2525
# provide a default for the new field since people were using the default constructor
2626
AWSConfig(creds, region, output) = AWSConfig(creds, region, output, AWS_MAX_RETRY_ATTEMPTS)
27+
Base.copy(config::AWSConfig) = AWSConfig(config.credentials, config.region, config.output, config.max_attempts)
2728

2829
credentials(aws::AWSConfig) = aws.credentials
2930
region(aws::AWSConfig) = aws.region

0 commit comments

Comments
 (0)