Github user rhtyd commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1660#discussion_r76731318 --- Diff: utils/src/main/java/com/cloud/utils/ssh/SshHelper.java --- @@ -196,6 +198,10 @@ public static void scpTo(String host, int port, String user, File pemKeyFile, St String result = sbResult.toString(); + if (StringUtils.isBlank(result)) { + result = IOUtils.toString(stdout); --- End diff -- Add the default utf8 encoding, what if this throws an exception (IOException)?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---