This small typo during refactor caused an issue where NETCONF error
messages would not be propagated into RESTCONF response in some cases
where transaction failed.
Signed-off-by: Peter Puškár <ppuskar@frinx.io>
Change-Id: I4c5179f8ec575da112ac0f76da40436900291cb9
Futures.addCallback(netconfService.commit(), new FutureCallback<DOMRpcResult>() {
@Override
public void onSuccess(final DOMRpcResult rpcResult) {
- final Collection<? extends RpcError> errors = result.getErrors();
+ final Collection<? extends RpcError> errors = rpcResult.getErrors();
if (errors.isEmpty()) {
Futures.whenAllComplete(netconfService.unlock()).run(
() -> commitResult.set(CommitInfo.empty()),