Skip to content

Commit

Permalink
S3Proxy seems to work a bit differently
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-yuen committed Nov 2, 2017
1 parent 9eef0d1 commit d734533
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,14 @@ boolean doesBucketExist(String bucketName) {
}

void createBucket(String bucketName) {
if(!doesBucketExist(bucketName)) {
// test server throws exceptions here
boolean doesBucketExist = false;
try {
doesBucketExist = doesBucketExist(bucketName);
} catch (Exception e){
System.out.println("blah");
}
if(!doesBucketExist) {
s3Client.createBucket(new CreateBucketRequest(bucketName));
}
}
Expand Down

0 comments on commit d734533

Please sign in to comment.