aboutsummaryrefslogtreecommitdiffstats
path: root/asdc-controller
diff options
context:
space:
mode:
authorAgata Stanislawska <agata.stanislawska@nokia.com>2020-09-04 09:46:15 +0200
committerastanisl <agata.stanislawska@nokia.com>2020-09-04 16:52:35 +0200
commitb1b59f0067e45efe1d048d24844d2b3afc26c3cd (patch)
tree74621e7b01d65b12e1a043ab7f068b586f1b6add /asdc-controller
parent58c097ac16bb2cddd20ccd77e42899ef0868fc00 (diff)
Error logging in SO-SDC adapter - in case of service distribution without any resources.
Issue-ID: SO-2978 Signed-off-by: astanisl <agata.stanislawska@nokia.com> Change-Id: I6a176143b004dfc19633e678ea7ee063d9e6df42 Signed-off-by: astanisl <agata.stanislawska@nokia.com>
Diffstat (limited to 'asdc-controller')
-rw-r--r--asdc-controller/src/main/java/org/onap/so/asdc/client/ASDCController.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/asdc-controller/src/main/java/org/onap/so/asdc/client/ASDCController.java b/asdc-controller/src/main/java/org/onap/so/asdc/client/ASDCController.java
index ad96e1be4b..61c0cdbf2e 100644
--- a/asdc-controller/src/main/java/org/onap/so/asdc/client/ASDCController.java
+++ b/asdc-controller/src/main/java/org/onap/so/asdc/client/ASDCController.java
@@ -754,6 +754,12 @@ public class ASDCController {
}
// process NsstResource
this.processNsstNotification(iNotif, toscaResourceStructure);
+
+ if (iNotif.getResources().isEmpty()) {
+ logger.error("Service Model contains no resources.");
+ return;
+ }
+
for (IResourceInstance resource : iNotif.getResources()) {
String resourceType = resource.getResourceType();