Loading src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceOperator.java +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 Loading @@ -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()); Loading Loading
src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceOperator.java +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 Loading @@ -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()); Loading