Skip to content

Commit

Permalink
fix null decrypted credential while getting batch predict job status (#…
Browse files Browse the repository at this point in the history
…3518) (#3519)

* fix null decrypted credential while getting batch predict job status

Signed-off-by: Bhavana Goud Ramaram <[email protected]>

* fix spotless

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]>
  • Loading branch information
opensearch-trigger-bot[bot] and rbhavna authored Feb 11, 2025
1 parent 68ceab3 commit 92c8a4b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ private void executeConnector(

final Map<String, String> decryptedCredential = connector.getDecryptedCredential() != null
&& !connector.getDecryptedCredential().isEmpty()
? mlEngine.getConnectorCredential(connector)
: connector.getDecryptedCredential();
? connector.getDecryptedCredential()
: mlEngine.getConnectorCredential(connector);
RemoteConnectorExecutor connectorExecutor = MLEngineClassLoader.initInstance(connector.getProtocol(), connector, Connector.class);
connectorExecutor.setScriptService(scriptService);
connectorExecutor.setClusterService(clusterService);
Expand Down

0 comments on commit 92c8a4b

Please sign in to comment.