aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pom.xml2
-rw-r--r--src/main/java/org/onap/sdc/toscaparser/api/ToscaTemplate.java3
-rw-r--r--version.properties2
3 files changed, 4 insertions, 3 deletions
diff --git a/pom.xml b/pom.xml
index f0383b1..aa95d28 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
<groupId>org.onap.sdc.jtosca</groupId>
<artifactId>jtosca</artifactId>
- <version>1.4.2-SNAPSHOT</version>
+ <version>1.4.3-SNAPSHOT</version>
<name>sdc-jtosca</name>
<properties>
diff --git a/src/main/java/org/onap/sdc/toscaparser/api/ToscaTemplate.java b/src/main/java/org/onap/sdc/toscaparser/api/ToscaTemplate.java
index f236a0a..b5ae4c4 100644
--- a/src/main/java/org/onap/sdc/toscaparser/api/ToscaTemplate.java
+++ b/src/main/java/org/onap/sdc/toscaparser/api/ToscaTemplate.java
@@ -35,6 +35,7 @@ import org.yaml.snakeyaml.Yaml;
public class ToscaTemplate extends Object {
+ public static final int MAX_LEVELS = 20;
private static Logger log = LoggerFactory.getLogger(ToscaTemplate.class.getName());
// TOSCA template key names
@@ -582,7 +583,7 @@ public class ToscaTemplate extends Object {
// multi level nesting - RECURSIVE
@SuppressWarnings("unchecked")
private void _handleNestedToscaTemplatesWithTopology(TopologyTemplate tt) {
- if(++nestingLoopCounter > 10) {
+ if(++nestingLoopCounter > MAX_LEVELS) {
log.error("ToscaTemplate - _handleNestedToscaTemplatesWithTopology - Nested Topologies Loop: too many levels, aborting");
return;
}
diff --git a/version.properties b/version.properties
index 0d94dfd..a54766f 100644
--- a/version.properties
+++ b/version.properties
@@ -5,7 +5,7 @@
major=1
minor=4
-patch=2
+patch=3
base_version=${major}.${minor}.${patch}