commit | 3ad0f19061270d5eafc14594bb575522368ec356 | [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 17:22:58 2018 +0200 |
tree | a31f3a7c8b3648d5f146b222de2c512dfcb795ed | |
parent | 7a3b4611c1593afe4648ad427bca9fb80da22cc7 [diff] |
Always ignore root node when adding node to dynamic config store Change-Id: I8cb0021fc9098fb71743f64dfbf0733c794452fc (cherry picked from commit d4e9417a5930e973ea770bb93e808b463fa0b980)
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);