Skip to content

Commit 28528e4

Browse files
committed
fix: correct institiation of S3Client
1 parent 1171fd4 commit 28528e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,8 +1042,8 @@ class LocalstackPlugin {
10421042
return;
10431043
}
10441044
const data = customResourcesBucketFile.getData().toString();
1045-
const oldClientCreation = 'S3Client({ maxAttempts: MAX_AWS_REQUEST_TRY });';
1046-
const newClientCreation = 'S3Client({ maxAttempts: MAX_AWS_REQUEST_TRY, forcePathStyle: true });';
1045+
const oldClientCreation = 'new S3Client({ maxAttempts: MAX_AWS_REQUEST_TRY });';
1046+
const newClientCreation = 'new S3Client({ maxAttempts: MAX_AWS_REQUEST_TRY, forcePathStyle: true });';
10471047
if (data.includes(newClientCreation)) {
10481048
// patch already done
10491049
createPatchMarker();

0 commit comments

Comments
 (0)