Skip to content

Commit a5e9f7d

Browse files
fix null decrypted credential while getting batch predict job status (#3518) (#3533)
* fix null decrypted credential while getting batch predict job status Signed-off-by: Bhavana Goud Ramaram <[email protected]> --------- Signed-off-by: Bhavana Goud Ramaram <[email protected]> (cherry picked from commit 5271ea6) Co-authored-by: Bhavana Goud Ramaram <[email protected]>
1 parent d8670c5 commit a5e9f7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/src/main/java/org/opensearch/ml/action/tasks/GetTaskTransportAction.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,8 @@ private void executeConnector(
460460

461461
final Map<String, String> decryptedCredential = connector.getDecryptedCredential() != null
462462
&& !connector.getDecryptedCredential().isEmpty()
463-
? mlEngine.getConnectorCredential(connector)
464-
: connector.getDecryptedCredential();
463+
? connector.getDecryptedCredential()
464+
: mlEngine.getConnectorCredential(connector);
465465
RemoteConnectorExecutor connectorExecutor = MLEngineClassLoader.initInstance(connector.getProtocol(), connector, Connector.class);
466466
connectorExecutor.setScriptService(scriptService);
467467
connectorExecutor.setClusterService(clusterService);

0 commit comments

Comments
 (0)