Commit 3d7a6bff authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

.yml also handled as YAML config files

parent 0c466159
......@@ -102,7 +102,7 @@ object ConfigUtils extends Logging {
def fileToConfigMap(configFile: File): Map[String, Any] = {
val configMap = {
if (configFile.getName.endsWith(".yaml")) yamlToMap(configFile)
if (configFile.getName.endsWith(".yaml") || configFile.getName.endsWith(".yml")) yamlToMap(configFile)
else jsonToMap(fileToJson(configFile))
logger.debug("Contain: " + configMap)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment