Fix wrong call to delete instead of write. 15/54615/1
authorAndrej Záň <andrej.zan@pantheon.tech>
Mon, 10 Apr 2017 17:10:43 +0000 (19:10 +0200)
committerAndrej Záň <andrej.zan@pantheon.tech>
Mon, 10 Apr 2017 17:10:43 +0000 (19:10 +0200)
Change-Id: Ib7ed39e082fb83d3c78e752129a1cc573a43fcdd
Signed-off-by: Andrej Záň <andrej.zan@pantheon.tech>
dom/mdsal-dom-inmemory-datastore/src/main/java/org/opendaylight/mdsal/dom/store/inmemory/InmemoryDOMDataTreeShardWriteTransaction.java

index 57d78b860dbff1dd8cdb62b1c3aeafe0e3f805ce..ca5cd2c0075f617fc94f4855897a136ba3cde717 100644 (file)
@@ -135,7 +135,7 @@ class InmemoryDOMDataTreeShardWriteTransaction implements DOMDataTreeShardWriteT
     }
 
     void write(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data) {
-        SimpleCursorOperation.DELETE.apply(getCursor(), toRelative(path), data);
+        SimpleCursorOperation.WRITE.apply(getCursor(), toRelative(path), data);
     }
 
     private YangInstanceIdentifier toRelative(final YangInstanceIdentifier path) {