From 0f611e5ccf783101d812cf9d809550f2849a7a8f Mon Sep 17 00:00:00 2001 From: Michael Dombrowski Date: Fri, 2 Jun 2023 12:13:19 -0400 Subject: [PATCH] fix: s3 client re-validate on change --- src/main/java/com/aws/greengrass/util/S3SdkClientFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/aws/greengrass/util/S3SdkClientFactory.java b/src/main/java/com/aws/greengrass/util/S3SdkClientFactory.java index 2afeae65b6..f99a03f65b 100644 --- a/src/main/java/com/aws/greengrass/util/S3SdkClientFactory.java +++ b/src/main/java/com/aws/greengrass/util/S3SdkClientFactory.java @@ -37,7 +37,7 @@ public class S3SdkClientFactory { public S3SdkClientFactory(DeviceConfiguration deviceConfiguration, LazyCredentialProvider credentialsProvider) { this.credentialsProvider = credentialsProvider; this.deviceConfiguration = deviceConfiguration; - this.deviceConfiguration.getAWSRegion().subscribe((what, node) -> handleRegionUpdate()); + this.deviceConfiguration.onAnyChange((what, node) -> handleRegionUpdate()); } protected void handleRegionUpdate() {