Small datanode fixes for migration (#18412)

* Migration fixes

* use sha instead of md5 hash
This commit is contained in:
Tomas Dvorak
2024-02-27 14:42:28 +01:00
committed by GitHub
parent 74809f4eee
commit a53fcc49e8
3 changed files with 7 additions and 5 deletions

View File

@@ -27,12 +27,12 @@ public class OpensearchKeystoreCli extends AbstractOpensearchCli {
}
/**
* Create a new opensearch keystore. This command expects that there is no keystore. Otherwise, it will ask for
* confirmation to override it and this fails, as there is currently no stdin configured.
* Create a new opensearch keystore. This command expects that there is no keystore. If there is a keystore,
* it will respond YES to override existing.
* @return STDOUT/STDERR of the execution as one String
*/
public String create() {
return runBatch("create");
return runWithStdin(Collections.singletonList("Y"),"create");
}
/**