Changes to capability artifact generation check 63/18863/1
authorRamya Balaji <rb111y@att.com>
Sat, 14 Oct 2017 03:42:48 +0000 (23:42 -0400)
committerRamya Balaji <rb111y@att.com>
Sat, 14 Oct 2017 03:52:20 +0000 (23:52 -0400)
Added blank string condition when checking
for vnfc type in scope in reference artifact

Issue-ID: APPC-277
Change-Id: I25841585b4ba4d0be553303f0020cba247a21086
Signed-off-by: Ramya Balaji <rb111y@att.com>
appc-inbound/appc-artifact-handler/provider/src/main/java/org/openecomp/appc/artifact/handler/node/ArtifactHandlerNode.java

index e53247e..d945769 100644 (file)
@@ -280,8 +280,11 @@ public class ArtifactHandlerNode implements SvcLogicJavaPlugin {
                         && !scope.isNull(SdcArtifactHandlerConstants.VNFC_TYPE)) {
                     context.setAttribute(SdcArtifactHandlerConstants.VNFC_TYPE,
                             scope.getString(SdcArtifactHandlerConstants.VNFC_TYPE));
-                    storeCapabilityArtifact=false;
-                    log.info("No capability Artifact for this reference data as it is ar VNFC level!!");
+                    String vnfcTypeScope = scope.getString(SdcArtifactHandlerConstants.VNFC_TYPE);
+                    if (StringUtils.isNotBlank(vnfcTypeScope)) {
+                        storeCapabilityArtifact = false;
+                        log.info("No capability Artifact for this reference data as it is at VNFC level!!");
+                    }
                 }
                 else
                     context.setAttribute(SdcArtifactHandlerConstants.VNFC_TYPE, null);