Fix sdc notif when already_deployed 97/113797/1 5.1.3
authorsebdet <sebastien.determe@intl.att.com>
Mon, 12 Oct 2020 12:31:49 +0000 (14:31 +0200)
committersebdet <sebastien.determe@intl.att.com>
Mon, 12 Oct 2020 12:31:49 +0000 (14:31 +0200)
Send also a notif when the deployment has already been done

Issue-ID: CLAMP-955
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Ic58a93d44506928166500d801891ebe8044adf28

src/main/java/org/onap/clamp/clds/sdc/controller/SdcSingleController.java

index 1885cc4..f9b43ab 100644 (file)
@@ -280,8 +280,8 @@ public class SdcSingleController {
                 csarInstaller.installTheCsar(csar);
                 sendAllNotificationForCsarHandler(notificationData, csar, NotificationType.DEPLOY,
                         DistributionStatusEnum.DEPLOY_OK, null);
-                this.sendComponentStatus(notificationData, DistributionStatusEnum.COMPONENT_DONE_OK, null);
             }
+            this.sendComponentStatus(notificationData, DistributionStatusEnum.COMPONENT_DONE_OK, null);
         } catch (SdcArtifactInstallerException | SdcToscaParserException e) {
             logger.error("SdcArtifactInstallerException exception caught during the notification processing", e);
             sendAllNotificationForCsarHandler(notificationData, csar, NotificationType.DEPLOY,