Skip to content

Commit

Permalink
fix strange Bean instantiation failure (kludge?)
Browse files Browse the repository at this point in the history
  • Loading branch information
RayPlante committed Jan 17, 2025
1 parent cf1e630 commit 937fa63
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,14 @@ public BagStorage getLongTermStorage() throws ConfigurationException {
logger.info("Bagstore mode: " + mode);
logger.info("Bagstore location: " + bagstore);
try {
if (mode.equals("aws") || mode.equals("remote"))
if (mode.equals("aws") || mode.equals("remote")) {
// this should not be necessary
AmazonS3 s3c = s3client;
if (s3c == null)
s3c = getAmazonS3();
//
return new AWSS3LongTermStorage(bagstore, s3client);
}
else if (mode.equals("local"))
return new FilesystemLongTermStorage(bagstore);
else
Expand Down

0 comments on commit 937fa63

Please sign in to comment.