This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new bdace85416e Camel-AWS-Secrets-Manager: Properties function, removed
exception in catch (#15497)
bdace85416e is described below
commit bdace85416e4f8f3d12abfe5da9fde02fa15cf99
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Sep 11 08:36:13 2024 +0200
Camel-AWS-Secrets-Manager: Properties function, removed exception in catch
(#15497)
Signed-off-by: Andrea Cosentino <[email protected]>
---
.../component/aws/secretsmanager/SecretsManagerPropertiesFunction.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/components/camel-aws/camel-aws-secrets-manager/src/main/java/org/apache/camel/component/aws/secretsmanager/SecretsManagerPropertiesFunction.java
b/components/camel-aws/camel-aws-secrets-manager/src/main/java/org/apache/camel/component/aws/secretsmanager/SecretsManagerPropertiesFunction.java
index 3f6ae545002..13219d8263c 100644
---
a/components/camel-aws/camel-aws-secrets-manager/src/main/java/org/apache/camel/component/aws/secretsmanager/SecretsManagerPropertiesFunction.java
+++
b/components/camel-aws/camel-aws-secrets-manager/src/main/java/org/apache/camel/component/aws/secretsmanager/SecretsManagerPropertiesFunction.java
@@ -257,7 +257,7 @@ public class SecretsManagerPropertiesFunction extends
ServiceSupport implements
if (ObjectHelper.isEmpty(returnValue)) {
returnValue = defaultValue;
}
- } catch (SecretsManagerException | IllegalArgumentException ex) {
+ } catch (SecretsManagerException ex) {
if (ObjectHelper.isNotEmpty(defaultValue)) {
returnValue = defaultValue;
} else {