Refactor OLM Junit tests
[transportpce.git] / olm / src / main / java / org / opendaylight / transportpce / olm / OlmPowerServiceRpcImpl.java
index 78c165b2be31c5738699d21220f6cfd6201ca17b..09e82845f436c2495cbdb76571b55ffd58d0fd4f 100644 (file)
@@ -64,8 +64,8 @@ public class OlmPowerServiceRpcImpl implements TransportpceOlmService {
      */
     @Override
     public ListenableFuture<RpcResult<GetPmOutput>> getPm(GetPmInput input) {
-        if (this.olmPowerService.getPm(input).getNodeId() == null) {
-            LOG.error("getPm: Error with input parameters");
+        if (input.getNodeId() == null) {
+            LOG.error("getPm: NodeId can not be null");
             return RpcResultBuilder.<GetPmOutput>failed()
                     .withError(ErrorType.RPC, "Error with input parameters")
                     .buildFuture();