cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/master to e3407a3
Date Fri, 19 Jun 2015 21:03:13 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 870e1898e -> e3407a393


findbugs: encoding using preferred Charset

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e3407a39
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e3407a39
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e3407a39

Branch: refs/heads/master
Commit: e3407a3939a99e0851e0b8bb8572bc830a0e39bc
Parents: 870e189
Author: Daan Hoogland <daan@onecht.net>
Authored: Fri Jun 19 23:03:05 2015 +0200
Committer: Daan Hoogland <daan@onecht.net>
Committed: Fri Jun 19 23:03:05 2015 +0200

----------------------------------------------------------------------
 .../kvm/resource/wrapper/LibvirtModifySshKeysCommandWrapper.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e3407a39/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtModifySshKeysCommandWrapper.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtModifySshKeysCommandWrapper.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtModifySshKeysCommandWrapper.java
index 28d647f..04c66d7 100644
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtModifySshKeysCommandWrapper.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtModifySshKeysCommandWrapper.java
@@ -26,6 +26,7 @@ import java.io.IOException;
 
 import org.apache.log4j.Logger;
 
+import com.cloud.utils.StringUtils;
 import com.cloud.agent.api.Answer;
 import com.cloud.agent.api.ModifySshKeysCommand;
 import com.cloud.hypervisor.kvm.resource.LibvirtComputingResource;
@@ -73,7 +74,7 @@ public final class LibvirtModifySshKeysCommandWrapper extends CommandWrapper<Mod
 
         if (pubKeyFile.exists()) {
             try (FileOutputStream pubkStream = new FileOutputStream(pubKeyFile)) {
-                pubkStream.write(command.getPubKey().getBytes());
+                pubkStream.write(command.getPubKey().getBytes(StringUtils.getPreferredCharset()));
             } catch (final FileNotFoundException e) {
                 result = "File" + sshpubkeypath + "is not found:"
                         + e.toString();


Mime
View raw message