aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/VendorSoftwareProductsImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/VendorSoftwareProductsImpl.java b/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/VendorSoftwareProductsImpl.java
index 37804ff865..8fdfd2fbd5 100644
--- a/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/VendorSoftwareProductsImpl.java
+++ b/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/VendorSoftwareProductsImpl.java
@@ -235,7 +235,7 @@ public class VendorSoftwareProductsImpl implements VendorSoftwareProducts {
VspDetailsDto vspDetailsDto =
new MapVspDetailsToDto().applyMapping(vspDetails, VspDetailsDto.class);
- addNetworkPackageInfo(vspId, version, vspDetailsDto);
+ addNetworkPackageInfo(vspId, vspDetails.getVersion(), vspDetailsDto);
return Response.ok(vspDetailsDto).build();
}
@@ -596,7 +596,8 @@ public class VendorSoftwareProductsImpl implements VendorSoftwareProducts {
} else {
OrchestrationTemplateEntity orchestrationTemplateInfo =
vendorSoftwareProductManager.getOrchestrationTemplateInfo(vspId, version);
- if (Objects.nonNull(orchestrationTemplateInfo)) {
+ if (Objects.nonNull(orchestrationTemplateInfo) && Objects.nonNull(orchestrationTemplateInfo
+ .getFileSuffix())) {
vspDetailsDto.setValidationData(orchestrationTemplateInfo.getValidationDataStructure());
vspDetailsDto.setNetworkPackageName(orchestrationTemplateInfo.getFileName());
vspDetailsDto.setOnboardingOrigin(orchestrationTemplateInfo.getFileSuffix());