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
Original line number Diff line number Diff line
@@ -545,6 +545,11 @@ public class SylvaMDResourceOperator {
          deploymentFolderPath);
      resourceClone = updateResourceStatus(resource, SylvaMDResourceState.ACTIVE,
          "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 {
      log.error("Shell script execution failed in {} for {}. Exit code: {}, Last line: {}", WORKINGDIR_PATH,
          deploymentFolderPath, exitCode, result.getLastLine());