summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java/org
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2023-10-23 10:47:21 +0100
committerMichael Morris <michael.morris@est.tech>2023-10-23 11:34:53 +0000
commit460b149b216cd785932d7d3faf521c0882600928 (patch)
tree3b92b3df274a3192ef0b70de82322cc217751a08 /catalog-be/src/main/java/org
parent6b60a4739f1d64a5346017460f6e9022c6b93551 (diff)
Fix error merging node types
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4664 Change-Id: I90dae030e099b2d2936120342335534a031e98a7
Diffstat (limited to 'catalog-be/src/main/java/org')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java
index 7b55f32f71..d5c64db76b 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java
@@ -764,11 +764,12 @@ public class CommonCsarGenerator {
return key;
}
+ @SuppressWarnings("unchecked")
private Map<String, Object> createProperties(final Object value) {
final Map<String, Object> propertiesMap = new HashMap<>();
propertiesMap.put("type", ((Map<String, Object>) value).get("type"));
propertiesMap.put("required", ((Map<String, Object>) value).get("required"));
- final Object entrySchema = ((Map<String, Object>) value).get("entry_schema");
+ final Object entrySchema = getValue("entry_schema", (Map<String, Object>) value);
if (entrySchema != null) {
propertiesMap.put("entry_schema", entrySchema);
}