RestconfTransaction always operates on a single datastore
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / rests / utils / PlainPatchDataTransactionUtil.java
index 5fcbe665b3af9ad42a4574e08e5fd33063f8a013..473ba0e3538567ddf2414552186796ad8ec87d00 100644 (file)
@@ -12,7 +12,6 @@ import com.google.common.util.concurrent.FluentFuture;
 import javax.ws.rs.core.Response;
 import javax.ws.rs.core.Response.Status;
 import org.opendaylight.mdsal.common.api.CommitInfo;
-import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.mdsal.dom.api.DOMTransactionChain;
 import org.opendaylight.restconf.common.context.NormalizedNodeContext;
 import org.opendaylight.restconf.common.errors.RestconfDocumentedException;
@@ -54,7 +53,7 @@ public final class PlainPatchDataTransactionUtil {
         try {
             LOG.trace("Merge CONFIGURATION within Restconf Patch: {} with payload {}", path, data);
             TransactionUtil.ensureParentsByMerge(path, schemaContext, transaction);
-            transaction.merge(LogicalDatastoreType.CONFIGURATION, path, data);
+            transaction.merge(path, data);
         } catch (final RestconfDocumentedException e) {
             transaction.cancel();
             throw new IllegalArgumentException(e);