Commit 99744293 authored by Christos Tranoris's avatar Christos Tranoris
Browse files

adding a line for successful execution

parent b08ea6e0
Loading
Loading
Loading
Loading
Loading
+5 −0
Changes for src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceOperator.java: 5 added lines, 0 removed lines.
Original line number Original line Diff line number Diff line
@@ -545,6 +545,11 @@ public class SylvaMDResourceOperator {
          deploymentFolderPath);
          deploymentFolderPath);
      resourceClone = updateResourceStatus(resource, SylvaMDResourceState.ACTIVE,
      resourceClone = updateResourceStatus(resource, SylvaMDResourceState.ACTIVE,
          "executing apply-workload-cluster.sh success ", client);
          "executing apply-workload-cluster.sh success ", client);
    } else if ( result.getLastLine().toUpperCase().contains("ALL DONE") ) {
      log.info("Shell script not executed successfully in {} for {}. Exit code: {} BUT Last line: {}", WORKINGDIR_PATH,
          deploymentFolderPath, exitCode, result.getLastLine());
      resourceClone = updateResourceStatus(resource, SylvaMDResourceState.ACTIVE,
          "executing apply-workload-cluster.sh success ", client);
    } else {
    } else {
      log.error("Shell script execution failed in {} for {}. Exit code: {}, Last line: {}", WORKINGDIR_PATH,
      log.error("Shell script execution failed in {} for {}. Exit code: {}, Last line: {}", WORKINGDIR_PATH,
          deploymentFolderPath, exitCode, result.getLastLine());
          deploymentFolderPath, exitCode, result.getLastLine());