Reconstruct inference stack during normalization
[netconf.git] / restconf / restconf-common / src / main / java / org / opendaylight / restconf / common / util / OperationsResourceUtils.java
index 7460f92aaa7742d02bc9401075975456181cea0a..055e57ad0f1f05fb854903fe312f9ac97cdef9a3 100644 (file)
@@ -60,7 +60,8 @@ public final class OperationsResourceUtils {
             operationsBuilder.withChild(ImmutableNodes.leafNode(leaf.getQName(), Empty.value()));
         }
 
-        return Map.entry(new InstanceIdentifierContext(null, operatationsSchema, mountPoint,
-            new OperationsEffectiveModuleContext(ImmutableSet.copyOf(modules))), operationsBuilder.build());
+        return Map.entry(InstanceIdentifierContext.ofDataSchemaNode(
+            new OperationsEffectiveModuleContext(ImmutableSet.copyOf(modules)), operatationsSchema, mountPoint),
+            operationsBuilder.build());
     }
 }