From c84cffb9baa8f86f3decd6fa6de2a5e3a2688381 Mon Sep 17 00:00:00 2001 From: Jakub Toth Date: Wed, 30 Aug 2017 10:56:58 +0200 Subject: [PATCH 1/1] Bug 9056 - Class FileModuleShardConfigProvider does not load configurations from classpath properly Change-Id: If1be5fa92eb98a91266353ece8ccc9cadf27c22e Signed-off-by: Jakub Toth --- .../datastore/config/FileModuleShardConfigProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/FileModuleShardConfigProvider.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/FileModuleShardConfigProvider.java index a2df91b1ba..3f65b59b73 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/FileModuleShardConfigProvider.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/FileModuleShardConfigProvider.java @@ -47,7 +47,7 @@ public class FileModuleShardConfigProvider implements ModuleShardConfigProvider moduleShardsConfig = ConfigFactory.parseFile(moduleShardsFile); } else { LOG.warn("module shards configuration read from resource"); - moduleShardsConfig = ConfigFactory.load(moduleShardsFile.getName()); + moduleShardsConfig = ConfigFactory.load(moduleShardsFile.getPath()); } Config modulesConfig = null; @@ -56,7 +56,7 @@ public class FileModuleShardConfigProvider implements ModuleShardConfigProvider modulesConfig = ConfigFactory.parseFile(modulesFile); } else { LOG.warn("modules configuration read from resource"); - modulesConfig = ConfigFactory.load(modulesFile.getName()); + modulesConfig = ConfigFactory.load(modulesFile.getPath()); } final Map moduleConfigMap = readModuleShardsConfig(moduleShardsConfig); -- 2.36.6