aboutsummaryrefslogtreecommitdiffstats
path: root/profiles
diff options
context:
space:
mode:
authorKanagaraj M <mkr1481@gmail.com>2019-09-05 18:43:33 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-09-05 19:11:01 +0530
commitda1dbc7caabb874832ac417430d529cc861f537a (patch)
tree91c41960ad24d54210e34de1f711fc22bfb2a15b /profiles
parenta050aba6575423744b4d34df79aac857c25547ef (diff)
Make the search more flexible
Issue-ID: CLI-166 Change-Id: Ib00fe8325e46f30c773f9c886e08e21996ac18be Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'profiles')
-rw-r--r--profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java4
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) {