summaryrefslogtreecommitdiffstats
path: root/appc-inbound/appc-artifact-handler/provider
diff options
context:
space:
mode:
authorRamya Balaji <rb111y@att.com>2017-10-13 23:42:48 -0400
committerRamya Balaji <rb111y@att.com>2017-10-13 23:52:20 -0400
commit7737b3a2836186c515a42a50146f15c204083b59 (patch)
tree112271b7e2532d047ce77170c3cf7de0ecb1629c /appc-inbound/appc-artifact-handler/provider
parent4474157591ff25982d11b9b90178f2b68d05eedf (diff)
Changes to capability artifact generation check
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>
Diffstat (limited to 'appc-inbound/appc-artifact-handler/provider')
-rw-r--r--appc-inbound/appc-artifact-handler/provider/src/main/java/org/openecomp/appc/artifact/handler/node/ArtifactHandlerNode.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/appc-inbound/appc-artifact-handler/provider/src/main/java/org/openecomp/appc/artifact/handler/node/ArtifactHandlerNode.java b/appc-inbound/appc-artifact-handler/provider/src/main/java/org/openecomp/appc/artifact/handler/node/ArtifactHandlerNode.java
index e53247e7e..d945769f4 100644
--- a/appc-inbound/appc-artifact-handler/provider/src/main/java/org/openecomp/appc/artifact/handler/node/ArtifactHandlerNode.java
+++ b/appc-inbound/appc-artifact-handler/provider/src/main/java/org/openecomp/appc/artifact/handler/node/ArtifactHandlerNode.java
@@ -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);