From c255bbeb22eed021d9da071c567908e507200bbc Mon Sep 17 00:00:00 2001 From: priyanshu Date: Wed, 19 Sep 2018 16:00:48 +0530 Subject: Interface Operation disappears on VSP update Interface Operation disappears on VSP update Change-Id: I209e8a41292aa2ccfa4466b3f383d53005b7b08b Issue-ID: SDC-1772 Signed-off-by: priyanshu --- .../org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'catalog-be/src/main/java/org/openecomp') 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 overrideResource = toscaOperationFacade .overrideComponent(newResource, oldResource); -- cgit 1.2.3-korg