From 4f33a7ce0304fa7a2f1b6c584035c92f1b41303e Mon Sep 17 00:00:00 2001 From: Arthur Martella Date: Mon, 9 Oct 2017 12:54:58 -0400 Subject: Change if condition to not always be false Issue: SO-197 Change-Id: I93f8ea9deaea5b2f08b34394fcf2b2362718ca43 Signed-off-by: Arthur Martella --- .../openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java b/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java index 24950db916..b6dddacd7c 100644 --- a/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java +++ b/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java @@ -98,6 +98,11 @@ public class ToscaResourceInstaller {// implements IVfResourceInstaller { throws ArtifactInstallerException { boolean status = false; VfResourceStructure vfResourceStructure = (VfResourceStructure)vfResourceStruct; + try { + status = vfResourceStructure.isDeployedSuccessfully(); + } catch (RuntimeException e) { + status = false; + } try { -- cgit 1.2.3-korg