Initialize metaProperties in JTosca.
authorPriyanshuAgarwal <pagarwal@amdocs.com>
Tue, 6 Feb 2018 05:52:30 +0000 (11:22 +0530)
committerpriyanshu <pagarwal@amdocs.com>
Tue, 6 Feb 2018 05:52:30 +0000 (11:22 +0530)
To enable SDC Parser to parse individual Yamls.

Change-Id: I94035dc0d2bd58fc192df7dc2f572cef5181b2a6
Issue-ID: SDC-999
Signed-off-by: priyanshu <pagarwal@amdocs.com>
src/main/java/org/openecomp/sdc/toscaparser/api/ToscaTemplate.java

index 8d7d130..4c19be6 100644 (file)
@@ -136,6 +136,7 @@ public class ToscaTemplate extends Object {
                nestedToscaTplsWithTopology = new ConcurrentHashMap<>();
                nestedToscaTemplatesWithTopology = new ArrayList<TopologyTemplate>();
                resolveGetInput = _resolveGetInput;
+               metaProperties = new LinkedHashMap<>();
 
                if(_path != null && !_path.isEmpty()) {
                        // save the original input path