cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject git commit: updated refs/heads/master to 783ed9b
Date Tue, 30 Sep 2014 12:42:13 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master ec56ee9eb -> 783ed9be9


"Fixing" a Coverity/Findbugs finding.

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

Branch: refs/heads/master
Commit: 783ed9be98c2fd2fe599bd9745ac317bcd5d6dc2
Parents: ec56ee9
Author: Hugo Trippaers <htrippaers@schubergphilis.com>
Authored: Tue Sep 30 14:42:08 2014 +0200
Committer: Hugo Trippaers <htrippaers@schubergphilis.com>
Committed: Tue Sep 30 14:42:08 2014 +0200

----------------------------------------------------------------------
 .../com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/783ed9be/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
index 18ffc18..3cac3d3 100644
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
@@ -17,6 +17,7 @@
 package com.cloud.hypervisor.kvm.storage;
 
 import java.io.File;
+import java.nio.charset.Charset;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
@@ -384,7 +385,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
                 String authUsername = spd.getAuthUserName();
                 if (authUsername != null) {
                     Secret secret = conn.secretLookupByUUIDString(spd.getSecretUUID());
-                    String secretValue = new String(Base64.encodeBase64(secret.getByteValue()));
+                    String secretValue = new String(Base64.encodeBase64(secret.getByteValue()),
Charset.defaultCharset());
                     pool.setAuthUsername(authUsername);
                     pool.setAuthSecret(secretValue);
                 }


Mime
View raw message