Change if condition to not always be false 95/17695/1
authorArthur Martella <amartell@research.att.com>
Mon, 9 Oct 2017 16:54:58 +0000 (12:54 -0400)
committerArthur Martella <amartell@research.att.com>
Mon, 9 Oct 2017 16:54:58 +0000 (12:54 -0400)
Issue: SO-197
Change-Id: I93f8ea9deaea5b2f08b34394fcf2b2362718ca43
Signed-off-by: Arthur Martella <amartell@research.att.com>
asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java

index 24950db..b6dddac 100644 (file)
@@ -98,6 +98,11 @@ public class ToscaResourceInstaller {// implements IVfResourceInstaller {
                        throws ArtifactInstallerException {\r
                boolean status = false;\r
                VfResourceStructure vfResourceStructure = (VfResourceStructure)vfResourceStruct;\r
+               try {\r
+                   status = vfResourceStructure.isDeployedSuccessfully();\r
+               } catch (RuntimeException e) {\r
+                   status = false;\r
+               }\r
                \r
                try {\r
                        \r