Loading src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceOperator.java +5 −0 Original line number Diff line number Diff line Loading @@ -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()); Loading Loading
src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceOperator.java +5 −0 Original line number Diff line number Diff line Loading @@ -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()); Loading