From a3a74d5d91fe67b992e2536d48355dc5651f46e0 Mon Sep 17 00:00:00 2001 From: Albertin Loic Date: Fri, 17 May 2019 17:28:52 +0200 Subject: [PATCH] Purged event means application is undeployed --- CHANGELOG.md | 7 ++++++- .../ystia/yorc/alien4cloud/plugin/YorcPaaSProvider.java | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a009395c..e0af4481 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## UNRELEASED +### BUG FIXES + +* Emit a persistent event on deployment purge ([GH-402](https://github.com/ystia/yorc/issues/402)) + + ## 3.2.0-RC1 (May 10, 2019) ## 3.2.0-M5 (April 19, 2019) @@ -206,7 +211,7 @@ This release brings a tech preview support of jobs scheduling. It allows to desi In this release we mainly focused on the integration with Slurm for supporting this feature (but we are also working on Kubernetes for the next release :smile:). Bellow are new supported TOSCA types and implementations: -* SlurmJobs: will lead to issuing a srun command with a given executable file. +* SlurmJobs: will lead to issuing a srun command with a given executable file. * SlurmBatch: will lead to issuing a sbatch command with a given batch file and associated executables * Singularity integration: allows to execute a Singularity container instead of an executable file. diff --git a/alien4cloud-yorc-plugin/src/main/java/org/ystia/yorc/alien4cloud/plugin/YorcPaaSProvider.java b/alien4cloud-yorc-plugin/src/main/java/org/ystia/yorc/alien4cloud/plugin/YorcPaaSProvider.java index 46f87420..32c82019 100644 --- a/alien4cloud-yorc-plugin/src/main/java/org/ystia/yorc/alien4cloud/plugin/YorcPaaSProvider.java +++ b/alien4cloud-yorc-plugin/src/main/java/org/ystia/yorc/alien4cloud/plugin/YorcPaaSProvider.java @@ -801,6 +801,7 @@ protected static DeploymentStatus getDeploymentStatusFromString(String state) { deploymentStatus = DeploymentStatus.DEPLOYED; break; case "UNDEPLOYED": + case "PURGED": deploymentStatus = DeploymentStatus.UNDEPLOYED; break; case "DEPLOYMENT_IN_PROGRESS":