diff options
Diffstat (limited to 'profiles/command/src')
-rw-r--r-- | profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |