Bump upstreams
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / rests / services / impl / RestconfInvokeOperationsServiceImpl.java
index e8b28f32521fd0866b34bc10381e30f6f9b6a088..d77f1fd6e1e47a62ca1bf7f325fd9a20fd3b3484 100644 (file)
@@ -110,15 +110,15 @@ public class RestconfInvokeOperationsServiceImpl implements RestconfInvokeOperat
         Futures.addCallback(future, new FutureCallback<DOMRpcResult>() {
             @Override
             public void onSuccess(final DOMRpcResult response) {
-                final var errors = response.getErrors();
+                final var errors = response.errors();
                 if (!errors.isEmpty()) {
-                    LOG.debug("RpcError message {}", response.getErrors());
-                    ar.resume(new RestconfDocumentedException("RPCerror message ", null, response.getErrors()));
+                    LOG.debug("RpcError message {}", response.errors());
+                    ar.resume(new RestconfDocumentedException("RPCerror message ", null, response.errors()));
                     return;
                 }
 
-                final NormalizedNode resultData = response.getResult();
-                if (resultData == null || ((ContainerNode) resultData).isEmpty()) {
+                final ContainerNode resultData = response.value();
+                if (resultData == null || resultData.isEmpty()) {
                     ar.resume(new WebApplicationException(Status.NO_CONTENT));
                 } else {
                     ar.resume(NormalizedNodePayload.of(context, resultData));