From 5f23e02caa5ab128a4c01866dec91eaea8dc7cee Mon Sep 17 00:00:00 2001 From: jitendra007 Date: Thu, 18 Jun 2020 16:25:39 +0530 Subject: Fixed sonarcloud issues Issue-ID: CLI-270 Signed-off-by: jitendra007 Change-Id: Ibb52afb2fe8fe7c9be4299d1a1cb1e3d32ab0eca --- .../java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'grpc/grpc-server') diff --git a/grpc/grpc-server/src/main/java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java b/grpc/grpc-server/src/main/java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java index 6bca7b38..427bab77 100644 --- a/grpc/grpc-server/src/main/java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java +++ b/grpc/grpc-server/src/main/java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java @@ -213,10 +213,8 @@ public class OpenInterfaceGrpcServer { cmd.getParametersMap().get(OnapCommandConstants.RPC_MODE).setValue(OnapCommandConstants.RPC_MODE_RUN_RPC); } - if (!cmd.isRpc()) { //Start the execution - if (req.getRequestId() != null && !req.getRequestId().isEmpty()) { - if (!(cmd.getInfo().getProduct().equalsIgnoreCase("open-cli") && + if (!cmd.isRpc()&&req.getRequestId() != null && !req.getRequestId().isEmpty()&&!(cmd.getInfo().getProduct().equalsIgnoreCase("open-cli") && cmd.getName().equalsIgnoreCase("execution-list"))) { String input = cmd.getArgsJson(true); executionStoreContext = OnapCommandExecutionStore.getStore().storeExectutionStart( @@ -227,8 +225,6 @@ public class OpenInterfaceGrpcServer { profile, input); } - } - } cmd.setExecutionContext(executionStoreContext); cmd.execute(); -- cgit 1.2.3-korg