Bug 9056 - Class FileModuleShardConfigProvider does not load 34/62634/2
authorJakub Toth <jakub.toth@pantheon.tech>
Mon, 4 Sep 2017 15:36:46 +0000 (17:36 +0200)
committerJakub Toth <jakub.toth@pantheon.tech>
Mon, 4 Sep 2017 15:38:20 +0000 (15:38 +0000)
configurations from classpath properly

Change-Id: I1944e2a3c035efcbbcddb3f0680b682c5286d907
Signed-off-by: Jakub Toth <jakub.toth@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/FileModuleShardConfigProvider.java

index 3f65b59b734ed01d6505e47a99206aa9c26ba02f..ba28e5dc3ac8c13b27a44d017653a0b156e5304b 100644 (file)
@@ -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.getPath());
+            moduleShardsConfig = ConfigFactory.load(moduleShardsConfigPath);
         }
 
         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.getPath());
+            modulesConfig = ConfigFactory.load(modulesConfigPath);
         }
 
         final Map<String, ModuleConfig.Builder> moduleConfigMap = readModuleShardsConfig(moduleShardsConfig);