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 0d8c64e
Date Mon, 22 Jun 2015 08:50:59 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master dc359c505 -> 0d8c64ea5


Fix findbugs DM_BOXED_PRIMITIVE_FOR_PARSING in OvmResourceBase.java

Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>

This closes #502


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

Branch: refs/heads/master
Commit: 0d8c64ea56e88421118934a824e30b4e11bd5e57
Parents: dc359c5
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Mon Jun 22 00:39:05 2015 +0200
Committer: Daan Hoogland <daan.hoogland@gmail.com>
Committed: Mon Jun 22 10:50:48 2015 +0200

----------------------------------------------------------------------
 .../ovm/src/com/cloud/ovm/hypervisor/OvmResourceBase.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0d8c64ea/plugins/hypervisors/ovm/src/com/cloud/ovm/hypervisor/OvmResourceBase.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/ovm/src/com/cloud/ovm/hypervisor/OvmResourceBase.java b/plugins/hypervisors/ovm/src/com/cloud/ovm/hypervisor/OvmResourceBase.java
index 7e542d5..0b83ea4 100644
--- a/plugins/hypervisors/ovm/src/com/cloud/ovm/hypervisor/OvmResourceBase.java
+++ b/plugins/hypervisors/ovm/src/com/cloud/ovm/hypervisor/OvmResourceBase.java
@@ -1072,7 +1072,7 @@ public class OvmResourceBase implements ServerResource, HypervisorResource
{
             String secondaryStorageMountPath = uri.getHost() + ":" + uri.getPath();
             String installPath = "template/tmpl/" + accountId + "/" + templateId;
             Map<String, String> res = OvmStoragePool.createTemplateFromVolume(_conn,
secondaryStorageMountPath, installPath, volumePath, wait);
-            return new CreatePrivateTemplateAnswer(cmd, true, null, res.get("installPath"),
Long.valueOf(res.get("virtualSize")), Long.parseLong(res.get("physicalSize")),
+            return new CreatePrivateTemplateAnswer(cmd, true, null, res.get("installPath"),
Long.parseLong(res.get("virtualSize")), Long.parseLong(res.get("physicalSize")),
                 res.get("templateFileName"), ImageFormat.RAW);
         } catch (Exception e) {
             s_logger.debug("Create template failed", e);


Mime
View raw message