[Rt-commit] rt branch 5.0/add-region-to-ExternalStorage-AmazonS3 created. rt-5.0.3-271-g61b6889e50
BPS Git Server
git at git.bestpractical.com
Sun Mar 5 23:34:08 UTC 2023
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".
The branch, 5.0/add-region-to-ExternalStorage-AmazonS3 has been created
at 61b6889e50cbb8c23d27f41f3033c04f02c8c56c (commit)
- Log -----------------------------------------------------------------
commit 61b6889e50cbb8c23d27f41f3033c04f02c8c56c
Author: Brad Embree <brad at bestpractical.com>
Date: Sun Mar 5 15:33:16 2023 -0800
Add region to Amazon::S3 params
diff --git a/lib/RT/ExternalStorage/AmazonS3.pm b/lib/RT/ExternalStorage/AmazonS3.pm
index a72aa1d0dd..a08b1cbf2c 100644
--- a/lib/RT/ExternalStorage/AmazonS3.pm
+++ b/lib/RT/ExternalStorage/AmazonS3.pm
@@ -102,7 +102,8 @@ sub Init {
aws_secret_access_key => $self->SecretAccessKey,
retry => 1,
);
- $args{host} = $self->{Host} if $self->{Host};
+ $args{host} = $self->{Host} if $self->{Host};
+ $args{region} = $self->{Region} if $self->{Region};
my $S3 = Amazon::S3->new(\%args);
$self->S3($S3);
-----------------------------------------------------------------------
hooks/post-receive
--
rt
More information about the rt-commit
mailing list