Merge "Sonar fix: TemplateNode.java"
[ccsdk/sli/plugins.git] / template-node / provider / src / main / java / org / onap / ccsdk / sli / plugins / template / TemplateNode.java
old mode 100644 (file)
new mode 100755 (executable)
index 7310b3f..a78b81e
@@ -42,7 +42,7 @@ public class TemplateNode implements SvcLogicJavaPlugin {
     public static final String TEMPLATE_PATH = "templatePath";
     public static final String OUTPUT_PATH_KEY = "output";
     public static final String PREFIX_KEY = "prefix";
-    public final static String REQUIRED_PARAMETERS_ERROR_MESSAGE = "templateName & outputPath are required fields";
+    public static final String REQUIRED_PARAMETERS_ERROR_MESSAGE = "templateName & outputPath are required fields";
     protected static final String TEMPLATE_PROPERTIES_FILE_NAME = "template-node.properties";
     protected static final String DEFAULT_PROPERTIES_DIR = "/opt/onap/ccsdk/data/properties";
     protected static final String PROPERTIES_DIR_KEY = "SDNC_CONFIG_DIR";
@@ -53,6 +53,7 @@ public class TemplateNode implements SvcLogicJavaPlugin {
         ve = new VelocityEngine();
         setProperties();
         ve.init();
+        ve.loadDirective("org.onap.ccsdk.sli.plugins.template.HideNullJson");
     }
 
     protected void setProperties() {