Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment