aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2022-09-30 23:51:12 +0200
committerLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2022-10-02 19:27:59 +0000
commit883b1b7c492bb30a9a94748c8421162097a9d007 (patch)
treeb71b7c037ed96a18fc04f52962b20bc31af30fcc /ms/blueprintsprocessor
parentedb2fca3819992926a1f979ad97499010613d7ac (diff)
Fix enrichment for multiplicated assignments
When different assignment mappings declare assignments of the same name, only one of the data dictionaries used there is being enriched and others are ignored. This change removes this limitation. Issue-ID: CCSDK-3773 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I492b18e01265471f89459c6dd5a28818aa479e5e
Diffstat (limited to 'ms/blueprintsprocessor')
-rw-r--r--ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/enhancer/ResourceDefinitionEnhancerService.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/enhancer/ResourceDefinitionEnhancerService.kt b/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/enhancer/ResourceDefinitionEnhancerService.kt
index bbec8e685..75f171b63 100644
--- a/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/enhancer/ResourceDefinitionEnhancerService.kt
+++ b/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/enhancer/ResourceDefinitionEnhancerService.kt
@@ -106,9 +106,7 @@ class ResourceDefinitionEnhancerServiceImpl(private val resourceDefinitionRepoSe
resourceAssignments.addAll(deferredResourceAssignment.await())
}
- val distinctResourceAssignments = resourceAssignments.distinctBy { it.name }
- generateResourceDictionary(blueprintBasePath, distinctResourceAssignments)
- // log.info("distinct Resource assignment ($distinctResourceAssignments)")
+ generateResourceDictionary(blueprintBasePath, resourceAssignments)
}
// Read the Resource Definitions from the Database and write to type file.