Skip to content

Commit

Permalink
[HUDI-7258] Fix dynamodb http endpoint (#10397)
Browse files Browse the repository at this point in the history
fixes #10394
  • Loading branch information
parisni authored Dec 27, 2023
1 parent c2da8aa commit 51048ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private DynamoDbClient getDynamoDBClient() {
? this.dynamoDBLockConfiguration.getString(DynamoDbBasedLockConfig.DYNAMODB_ENDPOINT_URL)
: DynamoDbClient.serviceMetadata().endpointFor(Region.of(region)).toString();

if (!endpointURL.startsWith("https://") || !endpointURL.startsWith("http://")) {
if (!endpointURL.startsWith("https://") && !endpointURL.startsWith("http://")) {
endpointURL = "https://" + endpointURL;
}

Expand Down

0 comments on commit 51048ac

Please sign in to comment.