Skip to content

Commit

Permalink
SED-2806 adding status to waitExecution
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Brongniart committed Feb 1, 2024
1 parent 9a80e0b commit e8d32cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void ListTenants() throws BusinessException {
resultName.add(tenant.getName());
resultId.add(tenant.getProjectId());
});
String oldJson = "{\"name\":[\"" + "".join("\",\"", resultName) + "\"],\"id\":[\"" + "".join("\",\"", resultId) + "\"]}";
String oldJson = "{\"name\":[\"" + String.join("\",\"", resultName) + "\"],\"id\":[\"" + String.join("\",\"", resultId) + "\"]}";
output.add("Tenants", oldJson);
} catch (Exception e) {
throw new BusinessException("Exception when trying to list the tenants", e);
Expand Down Expand Up @@ -463,7 +463,7 @@ private void waitExecution(StepClient client, String executionID, long timeout,

try {
exec = client.getExecutionManager().waitForTermination(executionID, timeout);

output.add("Status", exec.getStatus().name());
if (exec.getImportResult().isSuccessful()) {
output.add("Result", exec.getResult().toString());
if (failOnError && exec.getResult() != ReportNodeStatus.PASSED) {
Expand Down

0 comments on commit e8d32cc

Please sign in to comment.