diff options
author | priyanshu <pagarwal@amdocs.com> | 2018-09-19 16:00:48 +0530 |
---|---|---|
committer | Avi Gaffa <avi.gaffa@amdocs.com> | 2018-09-27 10:41:36 +0000 |
commit | c255bbeb22eed021d9da071c567908e507200bbc (patch) | |
tree | c5ed9fa4b0fda52a7a3d7daae06599291878be2e /catalog-be/src/main/java/org | |
parent | f02c8a02bf45824ef7f8bb76b55462960f561ec3 (diff) |
Interface Operation disappears on VSP update
Interface Operation disappears on VSP update
Change-Id: I209e8a41292aa2ccfa4466b3f383d53005b7b08b
Issue-ID: SDC-1772
Signed-off-by: priyanshu <pagarwal@amdocs.com>
Diffstat (limited to 'catalog-be/src/main/java/org')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java index 6bb8c5c613..4bceb0cc99 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java @@ -3306,6 +3306,11 @@ public class ResourceBusinessLogic extends ComponentBusinessLogic { if (newResource.getToscaArtifacts() == null || newResource.getToscaArtifacts().isEmpty()) { setToscaArtifactsPlaceHolders(newResource, user); } + + if (newResource.getInterfaces() == null || newResource.getInterfaces().isEmpty()) { + newResource.setInterfaces(oldResource.getInterfaces()); + } + Either<Resource, StorageOperationStatus> overrideResource = toscaOperationFacade .overrideComponent(newResource, oldResource); |