Some of these karaf CLI commands may produce return values and some CSIT components need to
read them from console.
Change-Id: Iae54c9481515c1e8fc42e9b1cf7b1530d523a142
Signed-off-by: Dominik Vrbovsky <dominik.vrbovsky@pantheon.tech>
if (!result.isSuccessful()) {
// FIXME: is there a better way to report errors?
System.out.println("Invocation failed: " + result.getErrors());
+ return null;
+ } else {
+ return result.getResult();
}
- return null;
}
protected abstract ListenableFuture<? extends RpcResult<?>> invokeRpc();
if (!result.isSuccessful()) {
// FIXME: is there a better way to report errors?
System.out.println("Invocation failed: " + result.getErrors());
+ return null;
+ } else {
+ return result.getResult();
}
- return null;
}
protected abstract ListenableFuture<? extends RpcResult<?>> invokeRpc();