Repository: curator
Updated Branches:
  refs/heads/CURATOR-397 f0bcd0476 -> 318bed14f


completeChildrenAsZNodes was treating zPaths as node names


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/eeabe8b5
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/eeabe8b5
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/eeabe8b5

Branch: refs/heads/CURATOR-397
Commit: eeabe8b5136e8a46569ede9ea193f6e2f10153b1
Parents: f0bcd04
Author: randgalt <[email protected]>
Authored: Wed Jun 14 16:10:35 2017 -0500
Committer: randgalt <[email protected]>
Committed: Wed Jun 14 16:10:35 2017 -0500

----------------------------------------------------------------------
 .../curator/x/async/modeled/details/ModeledFrameworkImpl.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/eeabe8b5/curator-x-async/src/main/java/org/apache/curator/x/async/modeled/details/ModeledFrameworkImpl.java
----------------------------------------------------------------------
diff --git 
a/curator-x-async/src/main/java/org/apache/curator/x/async/modeled/details/ModeledFrameworkImpl.java
 
b/curator-x-async/src/main/java/org/apache/curator/x/async/modeled/details/ModeledFrameworkImpl.java
index 422ae61..4951478 100644
--- 
a/curator-x-async/src/main/java/org/apache/curator/x/async/modeled/details/ModeledFrameworkImpl.java
+++ 
b/curator-x-async/src/main/java/org/apache/curator/x/async/modeled/details/ModeledFrameworkImpl.java
@@ -251,7 +251,7 @@ public class ModeledFrameworkImpl<T> implements 
ModeledFramework<T>
     private void completeChildrenAsZNodes(ModelStage<List<ZNode<T>>> 
modelStage, List<ZPath> children)
     {
         List<ZNode<T>> nodes = Lists.newArrayList();
-        children.forEach(name -> child(name).readAsZNode().handle((node, e) -> 
{
+        children.forEach(path -> withPath(path).readAsZNode().handle((node, e) 
-> {
             if ( e != null )
             {
                 modelStage.completeExceptionally(e);

Reply via email to