diff options
Diffstat (limited to 'profiles/command')
-rw-r--r-- | profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java | 5 |
1 files changed, 3 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 632142af..95ffb9f2 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 @@ -20,6 +20,7 @@ import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; +import java.nio.charset.Charset; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -255,7 +256,7 @@ public class OpenCommandShellCmd extends OnapCommand { outputValue = pr.getError(); } else { - //remove ${tmp: and closing } + //remove $(tmp: and closing ) String tmpName = this.output.substring(7, this.output.length()-1); String tmpFile = tmpFiles.get("tmp:" + tmpName); if (tmpFile != null) { @@ -328,7 +329,7 @@ public class OpenCommandShellCmd extends OnapCommand { try { FileUtils.touch(new File(tmpFilePath)); FileUtils.writeStringToFile(new File(tmpFilePath), - this.getParametersMap().get(paramName).getValue().toString()); + this.getParametersMap().get(paramName).getValue().toString(), (Charset) null); } catch (IOException e) { // NO SONAR } |