commit | d4e9417a5930e973ea770bb93e808b463fa0b980 | [log] [tgz] |
---|---|---|
author | Jordan Halterman <jordan@opennetworking.org> | Tue Aug 21 10:38:43 2018 -0700 |
committer | Andrea Campanella <andrea@opennetworking.org> | Wed Aug 22 14:44:12 2018 +0000 |
tree | cf03e002e82d94621f4d5ab2c0cabcc276dd725c | |
parent | 9379a078dc5039f7c39187854bf139328d761a80 [diff] |
Always ignore root node when adding node to dynamic config store Change-Id: I8cb0021fc9098fb71743f64dfbf0733c794452fc
diff --git a/apps/config/src/main/java/org/onosproject/config/impl/DistributedDynamicConfigStore.java b/apps/config/src/main/java/org/onosproject/config/impl/DistributedDynamicConfigStore.java index 1ae8d46..a143fca 100644 --- a/apps/config/src/main/java/org/onosproject/config/impl/DistributedDynamicConfigStore.java +++ b/apps/config/src/main/java/org/onosproject/config/impl/DistributedDynamicConfigStore.java
@@ -145,7 +145,7 @@ if (spath == null) { throw new FailedException("Invalid ResourceId, cannot create Node"); } - if (spath.equals(ResourceIdParser.ROOT) && node == null) { + if (spath.equals(ResourceIdParser.ROOT)) { return CompletableFuture.completedFuture(true); } else if (complete(keystore.get(DocumentPath.from(spath))) == null) { throw new FailedException("Node or parent does not exist for " + spath);