mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-18 10:51:04 +02:00
Always ignore root node when adding node to dynamic config store
Change-Id: I8cb0021fc9098fb71743f64dfbf0733c794452fc
This commit is contained in:
parent
9379a078dc
commit
d4e9417a59
@ -145,7 +145,7 @@ public class DistributedDynamicConfigStore
|
|||||||
if (spath == null) {
|
if (spath == null) {
|
||||||
throw new FailedException("Invalid ResourceId, cannot create Node");
|
throw new FailedException("Invalid ResourceId, cannot create Node");
|
||||||
}
|
}
|
||||||
if (spath.equals(ResourceIdParser.ROOT) && node == null) {
|
if (spath.equals(ResourceIdParser.ROOT)) {
|
||||||
return CompletableFuture.completedFuture(true);
|
return CompletableFuture.completedFuture(true);
|
||||||
} else if (complete(keystore.get(DocumentPath.from(spath))) == null) {
|
} else if (complete(keystore.get(DocumentPath.from(spath))) == null) {
|
||||||
throw new FailedException("Node or parent does not exist for " + spath);
|
throw new FailedException("Node or parent does not exist for " + spath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user