Skip to content

Commit 8ca3495

Browse files
committed
merge the existing parameters when updating connectors
Signed-off-by: Xun Zhang <xunzh@amazon.com>
1 parent 2cacf3b commit 8ca3495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/org/opensearch/ml/common/connector/HttpConnector.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public void update(MLCreateConnectorInput updateContent, Function<String, String
287287
this.protocol = updateContent.getProtocol();
288288
}
289289
if (updateContent.getParameters() != null && updateContent.getParameters().size() > 0) {
290-
this.parameters = updateContent.getParameters();
290+
getParameters().putAll(updateContent.getParameters());
291291
}
292292
if (updateContent.getCredential() != null && updateContent.getCredential().size() > 0) {
293293
this.credential = updateContent.getCredential();

0 commit comments

Comments
 (0)