From da1dbc7caabb874832ac417430d529cc861f537a Mon Sep 17 00:00:00 2001 From: Kanagaraj M Date: Thu, 5 Sep 2019 18:43:33 +0530 Subject: Make the search more flexible Issue-ID: CLI-166 Change-Id: Ib00fe8325e46f30c773f9c886e08e21996ac18be Signed-off-by: Kanagaraj Manickam k00365106 --- .../src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'profiles/command/src/main/java') diff --git a/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java b/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java index bc864529..3d2d4e4f 100644 --- a/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java +++ b/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java @@ -238,7 +238,7 @@ public class OpenCommandShellCmd extends OnapCommand { } if (this.output.equals("$stdout")) { - if (pr.getStdout() != null) { + if (this.getExecutionContext() != null) { try (FileInputStream is = new FileInputStream(this.getStdoutPath())){ outputValue = pr.streamToString(is); } catch (IOException e) { @@ -248,7 +248,7 @@ public class OpenCommandShellCmd extends OnapCommand { outputValue = pr.getOutput(); } else if (this.output.equals("$stderr")) { - if (pr.getStderr() != null) { + if (this.getExecutionContext() != null) { try (FileInputStream is = new FileInputStream(this.getStderrPath())) { outputValue = pr.streamToString(is); } catch (IOException e) { -- cgit 1.2.3-korg